Support out of band dumping of unrooted slots in AccountsDb (#17269)

* Accounts dumping logic

* Add test for interaction between cache flush and remove_unrooted_slot()

* Update comments

* Rename

* renaming

* Add more comments

* Renaming

* Fixup test and bad check
This commit is contained in:
carllin
2021-06-02 02:51:10 -07:00
committed by GitHub
parent 80e5b24b38
commit bbcdf073ba
3 changed files with 344 additions and 104 deletions

View File

@ -576,7 +576,7 @@ impl RepairService {
root_bank.clear_slot_signatures(*slot);
// Clear the accounts for this slot
root_bank.remove_unrooted_slot(*slot);
root_bank.remove_unrooted_slots(&[*slot]);
// Clear the slot-related data in blockstore. This will:
// 1) Clear old shreds allowing new ones to be inserted