Skip to content

Commit

Permalink
box duplicates lt hash
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo committed Oct 11, 2024
1 parent 296319f commit 14b166d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8574,7 +8574,7 @@ impl AccountsDb {
struct DuplicatePubkeysVisitedInfo {
accounts_data_len_from_duplicates: u64,
uncleaned_roots: IntSet<Slot>,
duplicates_lt_hash: DuplicatesLtHash,
duplicates_lt_hash: Box<DuplicatesLtHash>,
}
impl DuplicatePubkeysVisitedInfo {
fn reduce(mut a: Self, mut b: Self) -> Self {
Expand Down Expand Up @@ -8673,7 +8673,7 @@ impl AccountsDb {
rent_paying_accounts_by_partition: rent_paying_accounts_by_partition
.into_inner()
.unwrap(),
duplicates_lt_hash: Box::new(outer_duplicates_lt_hash.unwrap()),
duplicates_lt_hash: outer_duplicates_lt_hash.unwrap(),
}
}

Expand Down Expand Up @@ -8716,10 +8716,10 @@ impl AccountsDb {
pubkeys: &[Pubkey],
rent_collector: &RentCollector,
timings: &GenerateIndexTimings,
) -> (u64, IntSet<Slot>, DuplicatesLtHash) {
) -> (u64, IntSet<Slot>, Box<DuplicatesLtHash>) {
let mut accounts_data_len_from_duplicates = 0;
let mut uncleaned_slots = IntSet::default();
let mut duplicates_lt_hash = DuplicatesLtHash::default();
let mut duplicates_lt_hash = Box::new(DuplicatesLtHash::default());
let mut removed_rent_paying = 0;
let mut removed_top_off = 0;
let mut lt_hash_time = Duration::default();
Expand Down

0 comments on commit 14b166d

Please sign in to comment.