Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
clean filler accts, too
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington committed Oct 8, 2021
1 parent 572f84f commit 6319d98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions ledger/src/bank_forks_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ pub fn load(

if process_options
.accounts_db_config
.as_ref()
.and_then(|config| config.filler_account_count)
.unwrap_or_default()
> 0
Expand Down
6 changes: 1 addition & 5 deletions runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1992,10 +1992,6 @@ impl AccountsDb {
let mut purges_zero_lamports = HashMap::new();
let mut purges_old_accounts = Vec::new();
for pubkey in pubkeys {
if self.is_filler_account(pubkey) {
continue;
}

match self.accounts_index.get(pubkey, None, max_clean_root) {
AccountIndexGetResult::Found(locked_entry, index) => {
let slot_list = locked_entry.slot_list();
Expand Down Expand Up @@ -6515,7 +6511,7 @@ impl AccountsDb {
}

fn filler_rent_partition_prefix_bytes() -> usize {
std::mem::size_of::<u32>()
std::mem::size_of::<u64>()
}

fn filler_prefix_bytes() -> usize {
Expand Down

0 comments on commit 6319d98

Please sign in to comment.