Call AccountsDb::clean_accounts() directly, inside Bank::verify_snapshot_bank() (#27258)
This commit is contained in:
parent
5272a2852d
commit
9daa41024d
|
@ -7170,7 +7170,10 @@ impl Bank {
|
||||||
let mut clean_time = Measure::start("clean");
|
let mut clean_time = Measure::start("clean");
|
||||||
if !accounts_db_skip_shrink && self.slot() > 0 {
|
if !accounts_db_skip_shrink && self.slot() > 0 {
|
||||||
info!("cleaning..");
|
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();
|
clean_time.stop();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue