-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
metabase: store version #1521
metabase: store version #1521
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1521 +/- ##
==========================================
+ Coverage 35.56% 35.69% +0.12%
==========================================
Files 307 308 +1
Lines 18230 18266 +36
==========================================
+ Hits 6484 6520 +36
+ Misses 11201 11198 -3
- Partials 545 548 +3
Continue to review full report at Codecov.
|
|
||
- Container ID is encoded as base58 string | ||
- Object ID is encoded as base58 string | ||
- Address is encoded as object ID + "/" + container ID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you sure? not as "container ID + "/" + obejct ID"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
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>
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
Close #1483.
Signed-off-by: Evgenii Stratonikov evgeniy@nspcc.ru