frostfs-node/pkg/local_object_storage
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
..
blobovnicza [#727] Use util.MkdirAllX instead of os.MkdirAll 2021-07-30 16:42:22 +03:00
blobstor [#790] blobstor: Log each writing operation 2021-09-13 15:02:13 +03:00
engine [#766] Fix makezero linter error 2021-08-26 17:57:15 +03:00
internal/log [#790] storage engine: Add common template of log messages 2021-09-13 15:02:13 +03:00
metabase [#789] metabase: Implement Reset method 2021-09-15 18:22:09 +03:00
shard [#762] storage/shard: Try to read headers from write-cache 2021-09-02 11:33:17 +03:00
util [#477] metabase: Move MergeSplitInfo to storage/util pkg 2021-04-15 11:18:39 +03:00
writecache [#776] writecache: Limit size of used disk space 2021-09-15 18:07:36 +03:00