From dbb3223b622ad1a554499024ef0abc2594284610 Mon Sep 17 00:00:00 2001 From: brooks Date: Thu, 21 Sep 2023 16:37:49 -0500 Subject: [PATCH] Uses `IntSet` in AccountsDb::calc_delete_dependencies() --- accounts-db/src/accounts_db.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accounts-db/src/accounts_db.rs b/accounts-db/src/accounts_db.rs index f028ad0daef810..c5310f059851c6 100644 --- a/accounts-db/src/accounts_db.rs +++ b/accounts-db/src/accounts_db.rs @@ -2816,7 +2816,7 @@ impl AccountsDb { // Another pass to check if there are some filtered accounts which // do not match the criteria of deleting all appendvecs which contain them // then increment their storage count. - let mut already_counted = HashSet::new(); + let mut already_counted = IntSet::default(); for (pubkey, (account_infos, ref_count_from_storage)) in purges.iter() { let mut failed_slot = None; let all_stores_being_deleted = @@ -2861,7 +2861,7 @@ impl AccountsDb { } // increment store_counts to non-zero for all stores that can not be deleted. - let mut pending_stores = HashSet::new(); + let mut pending_stores = IntSet::default(); for (slot, _account_info) in account_infos { if !already_counted.contains(slot) { pending_stores.insert(*slot);