Purge next slots to avoid a blockstore_processor panic on restart (#10281) (#10285)

(cherry picked from commit 5ac2ae1178)

Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
mergify[bot]
2020-05-28 08:40:41 -07:00
committed by GitHub
parent 93e4ed1f75
commit 7813a1decd
2 changed files with 28 additions and 0 deletions

View File

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