Skip to content

Commit

Permalink
Uses NoHashHasher in AccountsDb::uncleaned_pubkeys (#4323)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Jan 7, 2025
1 parent 1563d90 commit 6a2a959
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ use {
smallvec::SmallVec,
solana_lattice_hash::lt_hash::LtHash,
solana_measure::{meas_dur, measure::Measure, measure_us},
solana_nohash_hasher::{IntMap, IntSet},
solana_nohash_hasher::{BuildNoHashHasher, IntMap, IntSet},
solana_rayon_threadlimit::get_thread_count,
solana_sdk::{
account::{Account, AccountSharedData, ReadableAccount},
Expand Down Expand Up @@ -1552,7 +1552,7 @@ pub struct AccountsDb {
/// Set of unique keys per slot which is used
/// to drive clean_accounts
/// Generated by calculate_accounts_delta_hash
uncleaned_pubkeys: DashMap<Slot, Vec<Pubkey>>,
uncleaned_pubkeys: DashMap<Slot, Vec<Pubkey>, BuildNoHashHasher<Slot>>,

#[cfg(test)]
load_delay: u64,
Expand Down Expand Up @@ -2058,7 +2058,7 @@ impl AccountsDb {
storage: AccountStorage::default(),
accounts_cache: AccountsCache::default(),
sender_bg_hasher: None,
uncleaned_pubkeys: DashMap::new(),
uncleaned_pubkeys: DashMap::default(),
next_id: AtomicAccountsFileId::new(0),
shrink_candidate_slots: Mutex::new(ShrinkCandidates::default()),
write_version: AtomicU64::new(0),
Expand Down

0 comments on commit 6a2a959

Please sign in to comment.