Skip to content

Commit

Permalink
Purge TransactionStatus and AddressSignatures exactly from ledger-tool (
Browse files Browse the repository at this point in the history
#10358)

* Add failing test

* Add execution path to purge primary-index columns exactly

* Fail gracefully if older TransactionStatus rocksdb keys are present

* Remove columns_empty check for special columns

* Move blockstore purge methods to submodule

* Remove unused column empty check
  • Loading branch information
CriesofCarrots authored Jun 3, 2020
1 parent 1303c49 commit eee9a08
Show file tree
Hide file tree
Showing 4 changed files with 1,210 additions and 574 deletions.
3 changes: 2 additions & 1 deletion core/src/ledger_cleanup_service.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! The `ledger_cleanup_service` drops older ledger data to limit disk space usage

use solana_ledger::blockstore::Blockstore;
use solana_ledger::blockstore::{Blockstore, PurgeType};
use solana_ledger::blockstore_db::Result as BlockstoreResult;
use solana_measure::measure::Measure;
use solana_sdk::clock::Slot;
Expand Down Expand Up @@ -172,6 +172,7 @@ impl LedgerCleanupService {
first_slot,
lowest_cleanup_slot,
delay_between_purges,
PurgeType::PrimaryIndex,
);
purge_time.stop();
info!("{}", purge_time);
Expand Down
Loading

0 comments on commit eee9a08

Please sign in to comment.