aboutsummaryrefslogtreecommitdiff
path: root/libpod/boltdb_state.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-02-08 13:55:02 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-02-12 14:28:07 +0000
commit363a82e6682f6b7afc6f9159c778e18009cd7c74 (patch)
treef9b7ec2c336c123b3a5bbc213d79ce06d6b99fcb /libpod/boltdb_state.go
parentb4cdc27b31a638322fb83b64aea869ce8600ea01 (diff)
downloadpodman-363a82e6682f6b7afc6f9159c778e18009cd7c74.tar.gz
podman-363a82e6682f6b7afc6f9159c778e18009cd7c74.tar.bz2
podman-363a82e6682f6b7afc6f9159c778e18009cd7c74.zip
Add pod buckets
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #184 Approved by: baude
Diffstat (limited to 'libpod/boltdb_state.go')
-rw-r--r--libpod/boltdb_state.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/libpod/boltdb_state.go b/libpod/boltdb_state.go
index 5502ec1b4..3584c9a9d 100644
--- a/libpod/boltdb_state.go
+++ b/libpod/boltdb_state.go
@@ -69,6 +69,14 @@ func NewBoltState(path, lockDir string, runtime *Runtime) (State, error) {
if err != nil {
return errors.Wrapf(err, "error creating container-depends bucket")
}
+ _, err = tx.CreateBucketIfNotExists(podBkt)
+ if err != nil {
+ return errors.Wrapf(err, "error creating pod bucket")
+ }
+ _, err = tx.CreateBucketIfNotExists(podContainersBkt)
+ if err != nil {
+ return errors.Wrapf(err, "error creating pod-containers bucket")
+ }
return nil
})
if err != nil {