frostfs-node/pkg/local_object_storage/metabase
Leonard Lyubich f9bcb6f5e3 [#1007] metabase: Copy BoltDB value returned by IsSmall
According to BoltDB documentation bucket `value is only valid for the
life of the transaction`.

Make `DB.IsSmall` copy value slice in order to prevent potential memory
corruptions (e.g. `runtime.stringtobyteslice` cast).

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-12-07 18:59:42 +03:00
..
cleanup.go [#337] metabase: Keep container size estimation 2021-01-29 11:04:30 +03:00
containers.go *: replace neofs-api-go with neofs-sdk-go 2021-11-12 17:29:09 +03:00
containers_test.go [#979] Upgrade SDK NeoFS Go dependency 2021-12-01 17:31:04 +03:00
control.go [#789] metabase: Implement Reset method 2021-09-15 18:22:09 +03:00
control_test.go *: replace neofs-api-go with neofs-sdk-go 2021-11-12 17:29:09 +03:00
db.go *: replace neofs-api-go with neofs-sdk-go 2021-11-12 17:29:09 +03:00
db_test.go [#979] Upgrade SDK NeoFS Go dependency 2021-12-01 17:31:04 +03:00
delete.go *: replace neofs-api-go with neofs-sdk-go 2021-11-12 17:29:09 +03:00
delete_test.go [#979] Upgrade SDK NeoFS Go dependency 2021-12-01 17:31:04 +03:00
exists.go *: replace neofs-api-go with neofs-sdk-go 2021-11-12 17:29:09 +03:00
exists_test.go [#979] Upgrade SDK NeoFS Go dependency 2021-12-01 17:31:04 +03:00
get.go *: replace neofs-api-go with neofs-sdk-go 2021-11-12 17:29:09 +03:00
get_test.go [#979] Upgrade SDK NeoFS Go dependency 2021-12-01 17:31:04 +03:00
graveyard.go *: replace neofs-api-go with neofs-sdk-go 2021-11-12 17:29:09 +03:00
graveyard_test.go *: replace neofs-api-go with neofs-sdk-go 2021-11-12 17:29:09 +03:00
info.go [#638] Update to Go 1.16 2021-06-29 13:44:59 +03:00
inhume.go *: replace neofs-api-go with neofs-sdk-go 2021-11-12 17:29:09 +03:00
inhume_test.go [#945] metabase: Use cleanup instead of defer in tests 2021-10-27 16:10:01 +03:00
iterators.go *: replace neofs-api-go with neofs-sdk-go 2021-11-12 17:29:09 +03:00
iterators_test.go *: replace neofs-api-go with neofs-sdk-go 2021-11-12 17:29:09 +03:00
list.go [#948] engine: Define EndOfListing error in component packages 2021-11-19 16:57:19 +03:00
list_test.go [#979] Upgrade SDK NeoFS Go dependency 2021-12-01 17:31:04 +03:00
movable.go *: replace neofs-api-go with neofs-sdk-go 2021-11-12 17:29:09 +03:00
movable_test.go [#945] metabase: Use cleanup instead of defer in tests 2021-10-27 16:10:01 +03:00
put.go *: replace neofs-api-go with neofs-sdk-go 2021-11-12 17:29:09 +03:00
put_test.go [#945] metabase: Use cleanup instead of defer in tests 2021-10-27 16:10:01 +03:00
select.go *: replace neofs-api-go with neofs-sdk-go 2021-11-12 17:29:09 +03:00
select_test.go [#979] Upgrade SDK NeoFS Go dependency 2021-12-01 17:31:04 +03:00
small.go [#1007] metabase: Copy BoltDB value returned by IsSmall 2021-12-07 18:59:42 +03:00
small_test.go [#945] metabase: Use cleanup instead of defer in tests 2021-10-27 16:10:01 +03:00
util.go *: replace neofs-api-go with neofs-sdk-go 2021-11-12 17:29:09 +03:00