Skip to content

Commit

Permalink
add filtering on store counts loop
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington committed Aug 6, 2024
1 parent b48e6dd commit e1664eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3413,6 +3413,9 @@ impl AccountsDb {
},
) in candidates_bin.write().unwrap().iter_mut()
{
if slot_list.is_empty() {
continue; // seems simpler than filtering. `candidates` contains all the pubkeys we original started with
}
if purged_account_slots.contains_key(pubkey) {
*ref_count = self.accounts_index.ref_count_from_storage(pubkey);
}
Expand Down

0 comments on commit e1664eb

Please sign in to comment.