take mutex once in process_dead_slots (#17357)
This commit is contained in:
parent
a1a0d6f84b
commit
45552d271a
|
@ -1895,8 +1895,11 @@ impl AccountsDb {
|
|||
|
||||
// If the slot is dead, remove the need to shrink the storages as
|
||||
// the storage entries will be purged.
|
||||
for slot in dead_slots {
|
||||
self.shrink_candidate_slots.lock().unwrap().remove(slot);
|
||||
{
|
||||
let mut list = self.shrink_candidate_slots.lock().unwrap();
|
||||
for slot in dead_slots {
|
||||
list.remove(slot);
|
||||
}
|
||||
}
|
||||
|
||||
debug!(
|
||||
|
|
Loading…
Reference in New Issue