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

Keep track of dirty stores on remove accounts to clean #17601

Merged
merged 3 commits into from
Jun 23, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add another clean
  • Loading branch information
sakridge committed Jun 16, 2021
commit 43b09c4a24979b0d13f89002534797f815c56891
3 changes: 3 additions & 0 deletions runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9241,6 +9241,9 @@ pub mod tests {
// Do clean
accounts.clean_accounts(None, false);

// 2nd clean needed to clean-up pubkey1
accounts.clean_accounts(None, false);

// Ensure pubkey2 is cleaned from the index finally
assert_not_load_account(&accounts, current_slot, pubkey1);
assert_load_account(&accounts, current_slot, pubkey2, old_lamport);
Expand Down