Skip to content

Commit

Permalink
Remove deletion of TransactionStatusIndex entries (solana-labs#34023)
Browse files Browse the repository at this point in the history
These entries are legacy code at this point; however, older release
branches require these entries to be present. Also, while it would be
nice to clean up these entries immediately, they only occupy a small
amount of space so having them linger a little longer isn't a big deal.
  • Loading branch information
steviez authored Dec 13, 2023
1 parent 39f2866 commit 70cab76
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ledger/src/blockstore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2278,13 +2278,9 @@ impl Blockstore {
if let Some(highest_primary_index_slot) = *w_highest_primary_index_slot {
if oldest_slot > highest_primary_index_slot {
*w_highest_primary_index_slot = None;
self.transaction_status_index_cf.delete(0)?;
self.transaction_status_index_cf.delete(1)?;
self.db.set_clean_slot_0(true);
}
}
if w_highest_primary_index_slot.is_none() {
self.db.set_clean_slot_0(true);
}
Ok(())
}

Expand Down

0 comments on commit 70cab76

Please sign in to comment.