Moves shrink after flush and clean (#30918)

This commit is contained in:
Brooks 2023-03-28 16:11:56 -04:00 committed by GitHub
parent 2dfc46c71e
commit 1f420f2b03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -640,7 +640,6 @@ impl AccountsBackgroundService {
return;
}
} else {
bank.shrink_candidate_slots();
if bank.block_height() - last_cleaned_block_height
> (CLEAN_INTERVAL_BLOCKS + thread_rng().gen_range(0, 10))
{
@ -652,6 +651,7 @@ impl AccountsBackgroundService {
bank.clean_accounts(last_full_snapshot_slot);
last_cleaned_block_height = bank.block_height();
}
bank.shrink_candidate_slots();
}
stats.record_and_maybe_submit(start_time.elapsed());
sleep(Duration::from_millis(INTERVAL_MS));