don't limit to thread pool when cleaning on startup (#17317)

This commit is contained in:
Jeff Washington (jwash)
2021-05-20 14:36:35 -05:00
committed by GitHub
parent dd13a31a5a
commit 0486df02ba
9 changed files with 78 additions and 70 deletions

View File

@@ -154,7 +154,7 @@ impl SnapshotRequestHandler {
// accounts that were included in the bank delta hash when the bank was frozen,
// and if we clean them here, the newly created snapshot's hash may not match
// the frozen hash.
snapshot_root_bank.clean_accounts(true);
snapshot_root_bank.clean_accounts(true, false);
clean_time.stop();
if accounts_db_caching_enabled {
@@ -372,7 +372,7 @@ impl AccountsBackgroundService {
// slots >= bank.slot()
bank.force_flush_accounts_cache();
}
bank.clean_accounts(true);
bank.clean_accounts(true, false);
last_cleaned_block_height = bank.block_height();
}
}