From 009091673503e0b923944688a8e1d8f3af7f5be4 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Thu, 9 Dec 2021 09:36:02 -0600 Subject: [PATCH] skip clean on startup, too (#21718) --- runtime/src/bank.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();