frostfs-node/pkg/local_object_storage/metabase
Leonard Lyubich 55c94a0152 [#789] metabase: Implement Reset method
In the previous implementation of the metabase, there was no possibility of
reinitializing the metabase: clearing information about existing objects and
bringing it back to its initial state. This operation can be useful in
cases when the stored metadata about objects has lost (or possibly lost)
relevance, and you need to generate data from scratch. Also at the
initialization stage, static resources of the base were not created -
container-independent buckets.

Make `Metabase.Init` method to allocate graveyard, container-size and
to-move-it buckets in underlying BoltDB instance. Implement `Metabase.Reset`
method: it works like `Init` but clean up all static buckets and removes
other ones. Due to the logical similarity, the methods share a single piece
of code.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-09-15 18:22:09 +03:00
..
cleanup.go [#337] metabase: Keep container size estimation 2021-01-29 11:04:30 +03:00
containers.go [#570] *: Remove usage of deprecated elements from API Go library 2021-05-31 20:45:15 +03:00
containers_test.go [#570] *: Use generator of test container IDs from API Go lib 2021-05-31 20:45:15 +03:00
control.go [#789] metabase: Implement Reset method 2021-09-15 18:22:09 +03:00
control_test.go [#789] metabase: Implement Reset method 2021-09-15 18:22:09 +03:00
db.go [#760] metabase: Support COMMON_PREFIX matchtype 2021-08-27 15:03:15 +03:00
db_test.go [#570] *: Use generator of test owner IDs from API Go lib 2021-05-31 20:45:15 +03:00
delete.go [#521] *: use stdlib errors package 2021-05-19 16:42:54 +03:00
delete_test.go [#570] *: Use generator of test container IDs from API Go lib 2021-05-31 20:45:15 +03:00
exists.go [#570] *: Remove usage of deprecated elements from API Go library 2021-05-31 20:45:15 +03:00
exists_test.go [#570] *: Use generator of test container IDs from API Go lib 2021-05-31 20:45:15 +03:00
get.go [#570] *: Remove usage of deprecated elements from API Go library 2021-05-31 20:45:15 +03:00
get_test.go [#570] *: Use generator of test container IDs from API Go lib 2021-05-31 20:45:15 +03:00
graveyard.go [#521] *: use stdlib errors package 2021-05-19 16:42:54 +03:00
graveyard_test.go [#378] metabase: Implement iterator over metabase graveyard 2021-02-19 11:56:32 +03:00
info.go [#638] Update to Go 1.16 2021-06-29 13:44:59 +03:00
inhume.go [#521] *: use stdlib errors package 2021-05-19 16:42:54 +03:00
inhume_test.go [#521] *: use stdlib errors package 2021-05-19 16:42:54 +03:00
iterators.go [#570] *: Remove usage of deprecated elements from API Go library 2021-05-31 20:45:15 +03:00
iterators_test.go [#378] metabase: Implement iterator over the objects under tombstones 2021-02-19 11:56:32 +03:00
movable.go [#643] pkg: Sync method names and commentaries to them 2021-06-24 16:10:44 +03:00
movable_test.go [#237] metabase: Structure parameters and results of all operations 2020-12-11 17:19:37 +03:00
put.go [#472] blobstor: implement write-cache 2021-04-29 17:36:36 +03:00
put_test.go [#472] blobstor: implement write-cache 2021-04-29 17:36:36 +03:00
select.go [#760] metabase: Support COMMON_PREFIX matchtype 2021-08-27 15:03:15 +03:00
select_test.go [#760] metabase: Support COMMON_PREFIX matchtype 2021-08-27 15:03:15 +03:00
small.go [#237] metabase: Structure parameters and results of all operations 2020-12-11 17:19:37 +03:00
small_test.go [#237] metabase: Structure parameters and results of all operations 2020-12-11 17:19:37 +03:00
util.go [#789] metabase: Implement Reset method 2021-09-15 18:22:09 +03:00