containerd/content/local
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
..
locks.go Licence header added 2018-02-19 10:32:26 +09:00
readerat.go Licence header added 2018-02-19 10:32:26 +09:00
store_test.go Add testcase for commit already exist 2018-09-13 17:38:28 -07:00
store_unix.go Licence header added 2018-02-19 10:32:26 +09:00
store_windows.go Licence header added 2018-02-19 10:32:26 +09:00
store.go Fix writer deadlock in local store 2018-10-15 16:33:45 -07:00
writer.go Fix writer deadlock in local store 2018-10-15 16:33:45 -07:00