4876a9047e
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> |
||
---|---|---|
.. | ||
drivers | ||
local | ||
store | ||
testutils | ||
validate.go | ||
validate_test.go | ||
validate_test_unix.go | ||
validate_test_windows.go | ||
volume.go | ||
volume_copy.go | ||
volume_copy_unix.go | ||
volume_copy_windows.go | ||
volume_linux.go | ||
volume_linux_test.go | ||
volume_propagation_linux.go | ||
volume_propagation_linux_test.go | ||
volume_propagation_unsupported.go | ||
volume_test.go | ||
volume_unix.go | ||
volume_unsupported.go | ||
volume_windows.go |