mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
eefb2220c0
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>
(cherry picked from commit
|
||
---|---|---|
.. | ||
db.go | ||
errors.go | ||
restore.go | ||
store.go | ||
store_test.go | ||
store_unix.go | ||
store_windows.go |