moby/volume/store
Brian Goff 4876a9047e Fix usage of boltdb in volume restore
bolt k/v pairs are only valid for the life of a transaction.
This means the memory that the k/v pair is referencing may be invalid if
it is accessed outside of the transaction.
This can potentially cause a panic.

For reference: https://godoc.org/github.com/boltdb/bolt#hdr-Caveats

To fix this issue, unmarshal the stored data into volume meta before
closing the transaction.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2016-12-22 11:56:02 -05:00
..
db.go Fix usage of boltdb in volume restore 2016-12-22 11:56:02 -05:00
errors.go Fix volume Create to check against canonical driver name 2016-12-16 10:45:46 -08:00
restore.go Fix usage of boltdb in volume restore 2016-12-22 11:56:02 -05:00
store.go Merge pull request #29378 from aaronlehmann/swarm-plugins 2016-12-19 11:07:06 +01:00
store_test.go Fix volume plugin refecounting on daemon restart 2016-12-16 10:14:06 -05:00
store_unix.go Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
store_windows.go Fix typos found across repository 2015-12-13 18:04:12 +02:00