remove storages that only contain empty (#27452)
This commit is contained in:
parent
1154bc8636
commit
2e4a52d010
|
@ -4052,6 +4052,16 @@ impl AccountsDb {
|
|||
self.accounts_index
|
||||
.clean_dead_slot(*slot, &mut AccountsIndexRootsStats::default());
|
||||
self.bank_hashes.write().unwrap().remove(slot);
|
||||
// all storages have been removed from here and recycled or dropped
|
||||
assert!(self
|
||||
.storage
|
||||
.map
|
||||
.remove(slot)
|
||||
.unwrap()
|
||||
.1
|
||||
.read()
|
||||
.unwrap()
|
||||
.is_empty());
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue