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

This commit is contained in:
Michael Vines
2020-05-27 19:55:40 -07:00
committed by GitHub
parent 2cd1e4e12a
commit 5ac2ae1178
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);