Skip to content

Commit 6a2a959

Browse files
authored
Uses NoHashHasher in AccountsDb::uncleaned_pubkeys (#4323)
1 parent 1563d90 commit 6a2a959

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

accounts-db/src/accounts_db.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ use {
8484
smallvec::SmallVec,
8585
solana_lattice_hash::lt_hash::LtHash,
8686
solana_measure::{meas_dur, measure::Measure, measure_us},
87-
solana_nohash_hasher::{IntMap, IntSet},
87+
solana_nohash_hasher::{BuildNoHashHasher, IntMap, IntSet},
8888
solana_rayon_threadlimit::get_thread_count,
8989
solana_sdk::{
9090
account::{Account, AccountSharedData, ReadableAccount},
@@ -1552,7 +1552,7 @@ pub struct AccountsDb {
15521552
/// Set of unique keys per slot which is used
15531553
/// to drive clean_accounts
15541554
/// Generated by calculate_accounts_delta_hash
1555-
uncleaned_pubkeys: DashMap<Slot, Vec<Pubkey>>,
1555+
uncleaned_pubkeys: DashMap<Slot, Vec<Pubkey>, BuildNoHashHasher<Slot>>,
15561556

15571557
#[cfg(test)]
15581558
load_delay: u64,
@@ -2058,7 +2058,7 @@ impl AccountsDb {
20582058
storage: AccountStorage::default(),
20592059
accounts_cache: AccountsCache::default(),
20602060
sender_bg_hasher: None,
2061-
uncleaned_pubkeys: DashMap::new(),
2061+
uncleaned_pubkeys: DashMap::default(),
20622062
next_id: AtomicAccountsFileId::new(0),
20632063
shrink_candidate_slots: Mutex::new(ShrinkCandidates::default()),
20642064
write_version: AtomicU64::new(0),

0 commit comments

Comments
 (0)