Skip to content

Commit

Permalink
Call AccountsDb::clean_accounts() directly, inside Bank::verify_snaps…
Browse files Browse the repository at this point in the history
…hot_bank() (solana-labs#27258)
  • Loading branch information
brooksprumo authored Aug 22, 2022
1 parent 5272a28 commit 9daa410
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 @@ -7170,7 +7170,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 9daa410

Please sign in to comment.