Skip to content

[TieredStorage] Disable accounts-file type check before enabling tiered-storage#418

Merged
yhchiang-sol merged 2 commits intoanza-xyz:masterfrom
yhchiang-sol:ts-disable-check
Mar 25, 2024
Merged

[TieredStorage] Disable accounts-file type check before enabling tiered-storage#418
yhchiang-sol merged 2 commits intoanza-xyz:masterfrom
yhchiang-sol:ts-disable-check

Conversation

@yhchiang-sol
Copy link
Copy Markdown

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

Comment thread accounts-db/src/accounts_file.rs Outdated
@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
Copy Markdown

@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
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