frostfs-node/pkg
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
..
core [#645] core: Define interface of the tool for working with netmap keys 2021-09-07 09:53:18 +03:00
innerring [#786] pkg/innerring: Use NNS to find contract script hashes missing in config 2021-09-13 14:51:35 +03:00
local_object_storage [#789] metabase: Implement Reset method 2021-09-15 18:22:09 +03:00
metrics [#426] Put prometheus behind pkg/metrics 2021-03-17 10:58:00 +03:00
morph [#825] event/notaryPreparator: Add unit test for incorrect Main TX script 2021-09-15 18:07:50 +03:00
network [#645] network: Remove no longer used `IsLocalAddress` function 2021-09-07 09:53:18 +03:00
services [#811] service/container: Hide cache invalidation logic in Writer interface 2021-09-13 14:50:18 +03:00
util [#798] util/state: Implement persistent storage for application state 2021-09-07 17:22:25 +03:00