diff --git a/accounts-db/src/accounts_db.rs b/accounts-db/src/accounts_db.rs index 38b36cd5a..1ce9c0f52 100644 --- a/accounts-db/src/accounts_db.rs +++ b/accounts-db/src/accounts_db.rs @@ -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) {