containerd/metadata
Derek McGowan 0f756495a9
Fix writer deadlock in local store
The local store could end up in a state where the writer is
closed but the reference is locked after a commit on an
existing object.
Cleans up Commit logic to always close the writer even after
an error occurs, guaranteeing the reference is unlocked after commit.
Adds a test to the content test suite to verify this behavior.
Updates the content store interface definitions to clarify the behavior.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2018-10-15 16:33:45 -07:00
..
boltutil boltdb/bolt --> go.etcd.io/bbolt 2018-09-12 15:23:57 -07:00
adaptors.go Support lease filters 2018-07-18 10:43:37 -07:00
bolt.go boltdb/bolt --> go.etcd.io/bbolt 2018-09-12 15:23:57 -07:00
buckets.go Merge pull request #2642 from dmcgowan/fix-commit-already-exists 2018-09-14 09:09:22 -04:00
containers_test.go boltdb/bolt --> go.etcd.io/bbolt 2018-09-12 15:23:57 -07:00
containers.go boltdb/bolt --> go.etcd.io/bbolt 2018-09-12 15:23:57 -07:00
content_test.go boltdb/bolt --> go.etcd.io/bbolt 2018-09-12 15:23:57 -07:00
content.go Fix writer deadlock in local store 2018-10-15 16:33:45 -07:00
db_test.go Adds a no-op migration for metadata v3 2018-09-12 15:33:42 -07:00
db.go Adds a no-op migration for metadata v3 2018-09-12 15:33:42 -07:00
gc_test.go boltdb/bolt --> go.etcd.io/bbolt 2018-09-12 15:23:57 -07:00
gc.go boltdb/bolt --> go.etcd.io/bbolt 2018-09-12 15:23:57 -07:00
images_test.go Licence header added 2018-02-19 10:32:26 +09:00
images.go boltdb/bolt --> go.etcd.io/bbolt 2018-09-12 15:23:57 -07:00
leases_test.go boltdb/bolt --> go.etcd.io/bbolt 2018-09-12 15:23:57 -07:00
leases.go boltdb/bolt --> go.etcd.io/bbolt 2018-09-12 15:23:57 -07:00
migrations.go Adds a no-op migration for metadata v3 2018-09-12 15:33:42 -07:00
namespaces.go boltdb/bolt --> go.etcd.io/bbolt 2018-09-12 15:23:57 -07:00
snapshot_test.go boltdb/bolt --> go.etcd.io/bbolt 2018-09-12 15:23:57 -07:00
snapshot.go boltdb/bolt --> go.etcd.io/bbolt 2018-09-12 15:23:57 -07:00