Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Call AccountsDb::clean_accounts() directly, inside Bank::verify_snaps…
Browse files Browse the repository at this point in the history
…hot_bank()
  • Loading branch information
brooksprumo committed Aug 19, 2022
1 parent 510d195 commit 0a56276
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7159,7 +7159,10 @@ impl Bank {
let mut clean_time = Measure::start("clean");
if !accounts_db_skip_shrink && self.slot() > 0 {
info!("cleaning..");
self._clean_accounts(true, true, Some(last_full_snapshot_slot));
self.rc
.accounts
.accounts_db
.clean_accounts(None, true, Some(last_full_snapshot_slot));
}
clean_time.stop();

Expand Down

0 comments on commit 0a56276

Please sign in to comment.