comment loop in function (#27454)

This commit is contained in:
Jeff Washington (jwash) 2022-08-30 10:58:02 -05:00 committed by GitHub
parent 7bd08ad3ae
commit e35cd7a34a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -7660,6 +7660,7 @@ impl AccountsDb {
) {
let mut measure = Measure::start("clean_stored_dead_slots-ms");
let mut stores: Vec<Arc<AccountStorageEntry>> = vec![];
// get all stores in a vec so we can iterate in parallel
for slot in dead_slots.iter() {
if let Some(slot_storage) = self.storage.get_slot_stores(*slot) {
for store in slot_storage.read().unwrap().values() {
@ -7667,6 +7668,7 @@ impl AccountsDb {
}
}
}
// get all pubkeys in all dead slots
let purged_slot_pubkeys: HashSet<(Slot, Pubkey)> = {
self.thread_pool_clean.install(|| {
stores