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

Commit

Permalink
Make unfunded purging really delete all dead root slots
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Feb 8, 2020
1 parent f9e10ef commit d79ae1e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,6 @@ impl AccountsDB {

fn cleanup_dead_slots(&self, dead_slots: &mut HashSet<Slot>, last_root: u64) {
// a slot is not totally dead until it is older than the root
dead_slots.retain(|slot| *slot < last_root);
if !dead_slots.is_empty() {
{
let mut index = self.accounts_index.write().unwrap();
Expand Down

0 comments on commit d79ae1e

Please sign in to comment.