forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make startup aware of Incremental Snapshots
Now that the background services are aware of incremental snapshots, they need (1) the corect last full snapshot slot in order to clean accounts correctly, and (2) all expected full snapshots to be available when created an incremental snapshot based on them. This commit fixes startup so both requirements from above are met. At startup, the blockstore processor loads frozen banks. Some of these banks may be roots, and some of these roots may cross the full snapshot interval. If/when that happens, take a bank snapshot and queue the full snapshot in the AccountsPackageSender. And at the end of startup, return the last full snapshot slot to pass into the background services. Fixes solana-labs#19297
- Loading branch information
1 parent
82a6bbe
commit e808092
Showing
8 changed files
with
376 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.