Skip to content

Commit

Permalink
IgnoreReclaims in indexgen
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoranYi committed Dec 11, 2024
1 parent 11467d9 commit e452a6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions accounts-db/src/accounts_index/in_mem_accounts_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,7 @@ impl<T: IndexValue, U: DiskIndexValue + From<T> + Into<T>> InMemAccountsIndex<T,
let entry = map.entry(pubkey);
m.stop();
let new_entry_zero_lamports = new_entry.is_zero_lamport();
let upsert_reclaim = UpsertReclaim::IgnoreReclaims;
let (found_in_mem, already_existed) = match entry {
Entry::Occupied(occupied) => {
// in cache, so merge into cache
Expand All @@ -746,7 +747,7 @@ impl<T: IndexValue, U: DiskIndexValue + From<T> + Into<T>> InMemAccountsIndex<T,
(slot, account_info),
None, // should be None because we don't expect a different slot # during index generation
&mut Vec::default(),
UpsertReclaim::PopulateReclaims, // this should be ignore?
upsert_reclaim,
);
(
true, /* found in mem */
Expand All @@ -766,7 +767,7 @@ impl<T: IndexValue, U: DiskIndexValue + From<T> + Into<T>> InMemAccountsIndex<T,
// There can be no 'other' slot in the list.
None,
&mut Vec::default(),
UpsertReclaim::PopulateReclaims,
upsert_reclaim,
);
vacant.insert(disk_entry);
(
Expand Down

0 comments on commit e452a6c

Please sign in to comment.