From 05cb25d8da06e590a13f6bc9a17cde826f5c40b2 Mon Sep 17 00:00:00 2001 From: HaoranYi Date: Tue, 7 Jun 2022 11:50:57 -0500 Subject: [PATCH] fix double count of account index del stats (#25797) --- runtime/src/in_mem_accounts_index.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/src/in_mem_accounts_index.rs b/runtime/src/in_mem_accounts_index.rs index 4ed80af933..6dd0b25821 100644 --- a/runtime/src/in_mem_accounts_index.rs +++ b/runtime/src/in_mem_accounts_index.rs @@ -282,10 +282,9 @@ impl InMemAccountsIndex { // if someone else holds the arc, // then they think the item is still in the index and can make modifications. // We have to have a write lock to the map here, which means nobody else can get - // the arc, but someone may already have retreived a clone of it. + // the arc, but someone may already have retrieved a clone of it. // account index in_mem flushing is one such possibility self.delete_disk_key(occupied.key()); - self.stats().insert_or_delete_mem(false, self.bin); occupied.remove(); } result