Fixup the metrics for remove_dead_accounts_shrink_us (#33458)

This commit is contained in:
Brooks 2023-09-29 12:04:33 -04:00 committed by GitHub
parent 1261b3d496
commit b81ff5d654
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -8228,11 +8228,11 @@ impl AccountsDb {
let mut shrink_candidate_slots = self.shrink_candidate_slots.lock().unwrap();
for slot in new_shrink_candidates {
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| {
if let Some(slot_store) = self.storage.get_slot_storage_entry(*slot) {