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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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();