skip clean on startup, too (#21718)

This commit is contained in:
Jeff Washington (jwash)
2021-12-09 09:36:02 -06:00
committed by GitHub
parent 7f48f67948
commit 0090916735

View File

@ -5332,9 +5332,9 @@ impl Bank {
accounts_db_skip_shrink: bool, accounts_db_skip_shrink: bool,
last_full_snapshot_slot: Option<Slot>, last_full_snapshot_slot: Option<Slot>,
) -> bool { ) -> bool {
info!("cleaning..");
let mut clean_time = Measure::start("clean"); 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); self.clean_accounts(true, true, last_full_snapshot_slot);
} }
clean_time.stop(); clean_time.stop();