-
Notifications
You must be signed in to change notification settings - Fork 254
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
[TieredStorage] Add AccountsFile::TieredStorage #72
[TieredStorage] Add AccountsFile::TieredStorage #72
Conversation
Putting it back to draft to understand more about the test failure. |
Please readd me as a reviewer when the PR is ready. Thanks! |
b76fd86
to
f4f04f9
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #72 +/- ##
=========================================
- Coverage 81.9% 81.8% -0.1%
=========================================
Files 840 840
Lines 228058 228105 +47
=========================================
+ Hits 186795 186815 +20
- Misses 41263 41290 +27 |
37f4515
to
80b251e
Compare
80b251e
to
b5b3309
Compare
51fe14a
to
9ca4257
Compare
Rebase to address conflicts. |
9db160d
to
40030e1
Compare
732964a
to
717476f
Compare
Rebased and addressed comments. |
717476f
to
0c7053d
Compare
Rebased on top of master with #400 |
0c7053d
to
5f71d03
Compare
Rebased on top of #401 that includes the capacity() API. |
5f71d03
to
8441131
Compare
Rebased on top of #401 |
a33f52f
to
6a825f1
Compare
6a825f1
to
5b85d59
Compare
Rebased on top of master with #401 |
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.
…ed-storage (#418) #### Problem As #72 introduced AccountsFile::TieredStorage, it also performs file-type check when opening an accounts-file to determine whether it is a tiered-storage or an append-vec. But before tiered-storage is enabled, this opening check is unnecessary. #### Summary of Changes Remove the accounts-file type check code and simply assume everything is append-vec on AccountsFile::new_from_file().
Problem
AccountsFile currently doesn't have an implementation for TieredStorage.
To enable AccountsDB tests for the TieredStorage, we need AccountsFile
to support TieredStorage.
Summary of Changes
This PR implements a AccountsFile::TieredStorage, a thin wrapper between
AccountsFile and TieredStorage.