get_slot_stores -> get_slot_storage_entry (#29678)
This commit is contained in:
parent
b64f58614d
commit
3412928cad
|
@ -8282,13 +8282,15 @@ impl AccountsDb {
|
||||||
self.accounts_cache.add_root(slot);
|
self.accounts_cache.add_root(slot);
|
||||||
cache_time.stop();
|
cache_time.stop();
|
||||||
let mut store_time = Measure::start("store_add_root");
|
let mut store_time = Measure::start("store_add_root");
|
||||||
// We would not expect this slot to be shrinking right now.
|
// We would not expect this slot to be shrinking right now, but other slots may be.
|
||||||
// But, even if it was, we would just mark a store id as dirty unnecessarily and that is ok.
|
// But, even if it was, we would just mark a store id as dirty unnecessarily and that is ok.
|
||||||
// So, allow shrinking to be in progress.
|
// So, allow shrinking to be in progress.
|
||||||
if let Some(slot_stores) = self.storage.get_slot_stores_shrinking_in_progress_ok(slot) {
|
if let Some(store) = self
|
||||||
for (store_id, store) in slot_stores.read().unwrap().iter() {
|
.storage
|
||||||
self.dirty_stores.insert((slot, *store_id), store.clone());
|
.get_slot_storage_entry_shrinking_in_progress_ok(slot)
|
||||||
}
|
{
|
||||||
|
self.dirty_stores
|
||||||
|
.insert((slot, store.append_vec_id()), store);
|
||||||
}
|
}
|
||||||
store_time.stop();
|
store_time.stop();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue