diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 22ec96492d..c70de78c47 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -5332,9 +5332,9 @@ impl Bank { accounts_db_skip_shrink: bool, last_full_snapshot_slot: Option, ) -> 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();