Remove ledger purge batching (#10830) (#10836)

(cherry picked from commit 583cec922b)

Co-authored-by: sakridge <sakridge@gmail.com>
This commit is contained in:
mergify[bot]
2020-06-29 23:10:45 +00:00
committed by GitHub
parent 6cb76ac326
commit 9caad645e2
7 changed files with 34 additions and 76 deletions

View File

@@ -1295,7 +1295,7 @@ fn main() {
let start_slot = value_t_or_exit!(arg_matches, "start_slot", Slot);
let end_slot = value_t_or_exit!(arg_matches, "end_slot", Slot);
let blockstore = open_blockstore(&ledger_path, AccessType::PrimaryOnly);
blockstore.purge_slots(start_slot, end_slot);
blockstore.purge_and_compact_slots(start_slot, end_slot);
blockstore.purge_from_next_slots(start_slot, end_slot);
}
("list-roots", Some(arg_matches)) => {