Skip to content

Commit

Permalink
skip clean on startup, too (solana-labs#21718)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington authored Dec 9, 2021
1 parent 7f48f67 commit 0090916
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5332,9 +5332,9 @@ impl Bank {
accounts_db_skip_shrink: bool,
last_full_snapshot_slot: Option<Slot>,
) -> bool {
info!("cleaning..");
let mut clean_time = Measure::start("clean");
if self.slot() > 0 {
if !accounts_db_skip_shrink && self.slot() > 0 {
info!("cleaning..");
self.clean_accounts(true, true, last_full_snapshot_slot);
}
clean_time.stop();
Expand Down

0 comments on commit 0090916

Please sign in to comment.