frostfs-node/pkg/local_object_storage
Evgenii Stratonikov 6f243a2a76 [#1483] metabase: Store version
The main problem is to distinguish the case of initial initialization
and update from version 0. We can't do this at `Open`, because of
`resync_metabase` flag. Thus, the following approach was taken:
1. During `Open` check whether the metabase was initialized.
2. Check for the version in `Init` or write the new one if the metabase
   is new.
3. Update version in `Reset`.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-06-21 17:48:28 +03:00
..
blobovnicza [#1520] shard: Ignore errors on metabase refill 2022-06-21 17:25:28 +03:00
blobstor [#1520] shard: Ignore errors on metabase refill 2022-06-21 17:25:28 +03:00
engine [#1494] *: Fix linter warnings 2022-06-15 12:26:10 +03:00
internal/log [#790] storage engine: Add common template of log messages 2021-09-13 15:02:13 +03:00
metabase [#1483] metabase: Store version 2022-06-21 17:48:28 +03:00
shard [#1520] shard: Ignore errors on metabase refill 2022-06-21 17:25:28 +03:00
util [#1454] Upgrade NeoFS SDK Go module with new IDs 2022-06-01 17:41:45 +03:00
writecache [#1524] writecache: Add some bolt parameters to the configuration 2022-06-20 17:04:35 +03:00