Fixup the metrics for remove_dead_accounts_shrink_us (#33458)
This commit is contained in:
parent
1261b3d496
commit
b81ff5d654
|
@ -8228,11 +8228,11 @@ impl AccountsDb {
|
||||||
let mut shrink_candidate_slots = self.shrink_candidate_slots.lock().unwrap();
|
let mut shrink_candidate_slots = self.shrink_candidate_slots.lock().unwrap();
|
||||||
for slot in new_shrink_candidates {
|
for slot in new_shrink_candidates {
|
||||||
shrink_candidate_slots.insert(slot);
|
shrink_candidate_slots.insert(slot);
|
||||||
measure.stop();
|
|
||||||
self.clean_accounts_stats
|
|
||||||
.remove_dead_accounts_shrink_us
|
|
||||||
.fetch_add(measure.as_us(), Ordering::Relaxed);
|
|
||||||
}
|
}
|
||||||
|
measure.stop();
|
||||||
|
self.clean_accounts_stats
|
||||||
|
.remove_dead_accounts_shrink_us
|
||||||
|
.fetch_add(measure.as_us(), Ordering::Relaxed);
|
||||||
|
|
||||||
dead_slots.retain(|slot| {
|
dead_slots.retain(|slot| {
|
||||||
if let Some(slot_store) = self.storage.get_slot_storage_entry(*slot) {
|
if let Some(slot_store) = self.storage.get_slot_storage_entry(*slot) {
|
||||||
|
|
Loading…
Reference in New Issue