Skip to content
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] Disable accounts-file type check before enabling tiered-storage #418

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

yhchiang-sol
Copy link

@yhchiang-sol yhchiang-sol commented Mar 25, 2024

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().

@yhchiang-sol yhchiang-sol changed the title [TieredStorage] Disable file type check before full enable tiered-storage [TieredStorage] Disable accounts-file type check before enabling tiered-storage Mar 25, 2024
Copy link

@brooksprumo brooksprumo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@yhchiang-sol yhchiang-sol merged commit c7dba30 into anza-xyz:master Mar 25, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants