Call AccountsDb::clean_accounts() directly, inside Bank::verify_snapshot_bank() (#27258)

This commit is contained in:
Brooks Prumo 2022-08-22 13:56:13 -04:00 committed by GitHub
parent 5272a2852d
commit 9daa41024d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

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