From 0a56276f139c2dad8a6aa388d1f4d2da290f26b0 Mon Sep 17 00:00:00 2001 From: Brooks Prumo Date: Fri, 19 Aug 2022 11:52:52 -0400 Subject: [PATCH] Call AccountsDb::clean_accounts() directly, inside Bank::verify_snapshot_bank() --- runtime/src/bank.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index a6bbb8044b26ef..2c580971f4379b 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -7159,7 +7159,10 @@ impl Bank { let mut clean_time = Measure::start("clean"); if !accounts_db_skip_shrink && self.slot() > 0 { info!("cleaning.."); - self._clean_accounts(true, true, Some(last_full_snapshot_slot)); + self.rc + .accounts + .accounts_db + .clean_accounts(None, true, Some(last_full_snapshot_slot)); } clean_time.stop();