Skip to content

Commit

Permalink
Add clean_accounts_for_tests() (solana-labs#27200)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Aug 17, 2022
1 parent fea66c8 commit 2fd9a4f
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 52 deletions.
2 changes: 1 addition & 1 deletion accounts-bench/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ fn main() {
for x in 0..iterations {
if clean {
let mut time = Measure::start("clean");
accounts.accounts_db.clean_accounts(None, false, None);
accounts.accounts_db.clean_accounts_for_tests();
time.stop();
println!("{}", time);
for slot in 0..num_slots {
Expand Down
2 changes: 1 addition & 1 deletion runtime/benches/accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ fn bench_delete_dependencies(bencher: &mut Bencher) {
accounts.add_root(i);
}
bencher.iter(|| {
accounts.accounts_db.clean_accounts(None, false, None);
accounts.accounts_db.clean_accounts_for_tests();
});
}

Expand Down
2 changes: 1 addition & 1 deletion runtime/src/accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3081,7 +3081,7 @@ mod tests {
}
}
info!("done..cleaning..");
accounts.accounts_db.clean_accounts(None, false, None);
accounts.accounts_db.clean_accounts_for_tests();
}

fn load_accounts_no_store(
Expand Down
Loading

0 comments on commit 2fd9a4f

Please sign in to comment.