clean_dead_slots_from_accounts_index unrefs correctly (#27461)
This commit is contained in:
parent
8f3c1e3ebb
commit
a4b8ab2f59
|
@ -7586,7 +7586,7 @@ impl AccountsDb {
|
||||||
let mut accounts_index_root_stats = AccountsIndexRootsStats::default();
|
let mut accounts_index_root_stats = AccountsIndexRootsStats::default();
|
||||||
let mut measure = Measure::start("unref_from_storage");
|
let mut measure = Measure::start("unref_from_storage");
|
||||||
if let Some(purged_stored_account_slots) = purged_stored_account_slots {
|
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;
|
const BATCH_SIZE: usize = 10_000;
|
||||||
let batches = 1 + (len / BATCH_SIZE);
|
let batches = 1 + (len / BATCH_SIZE);
|
||||||
self.thread_pool_clean.install(|| {
|
self.thread_pool_clean.install(|| {
|
||||||
|
|
Loading…
Reference in New Issue