clean_dead_slots_from_accounts_index unrefs correctly (#27461)

This commit is contained in:
Jeff Washington (jwash) 2022-08-30 08:40:21 -05:00 committed by GitHub
parent 8f3c1e3ebb
commit a4b8ab2f59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -7586,7 +7586,7 @@ impl AccountsDb {
let mut accounts_index_root_stats = AccountsIndexRootsStats::default();
let mut measure = Measure::start("unref_from_storage");
if let Some(purged_stored_account_slots) = purged_stored_account_slots {
let len = purged_stored_account_slots.len();
let len = purged_slot_pubkeys.len();
const BATCH_SIZE: usize = 10_000;
let batches = 1 + (len / BATCH_SIZE);
self.thread_pool_clean.install(|| {