remove redundant cancelled_shrink (#19522)

This commit is contained in:
Jeff Washington (jwash)
2021-08-31 11:51:48 -05:00
committed by GitHub
parent 9d3afba045
commit 0e94b8fd4e

View File

@ -1222,7 +1222,6 @@ struct ShrinkStats {
skipped_shrink: AtomicU64,
dead_accounts: AtomicU64,
alive_accounts: AtomicU64,
cancelled_shrink: AtomicU64,
}
impl ShrinkStats {
@ -1321,11 +1320,6 @@ impl ShrinkStats {
self.dead_accounts.swap(0, Ordering::Relaxed) as i64,
i64
),
(
"cancelled_shrink",
self.cancelled_shrink.swap(0, Ordering::Relaxed) as i64,
i64
),
);
}
}
@ -2311,9 +2305,6 @@ impl AccountsDb {
self.shrink_stats
.skipped_shrink
.fetch_add(1, Ordering::Relaxed);
self.shrink_stats
.cancelled_shrink
.fetch_add(1, Ordering::Relaxed);
for pubkey in unrefed_pubkeys {
if let Some(locked_entry) = self.accounts_index.get_account_read_entry(pubkey) {
locked_entry.addref();