diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index dc2a8f44e..e65e7290f 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -5166,7 +5166,11 @@ impl AccountsDb { .fetch_add(handle_reclaims_elapsed.as_us(), Ordering::Relaxed); // After handling the reclaimed entries, this slot's // storage entries should be purged from self.storage - assert!(self.storage.get_slot_stores(remove_slot).is_none()); + assert!( + self.storage.get_slot_stores(remove_slot).is_none(), + "slot {} is not none", + remove_slot + ); } #[allow(clippy::needless_collect)] diff --git a/runtime/src/accounts_index.rs b/runtime/src/accounts_index.rs index bfd85d4de..cc6650af5 100644 --- a/runtime/src/accounts_index.rs +++ b/runtime/src/accounts_index.rs @@ -1711,9 +1711,9 @@ impl AccountsIndex { is_slot_list_empty = slot_list.is_empty(); }); - // If the slot list is empty, remove the pubkey from `account_maps`. Make sure to grab the + // If the slot list is empty, remove the pubkey from `account_maps`. Make sure to grab the // lock and double check the slot list is still empty, because another writer could have - // locked and inserted the pubkey inbetween when `is_slot_list_empty=true` and the call to + // locked and inserted the pubkey in-between when `is_slot_list_empty=true` and the call to // remove() below. if is_slot_list_empty { let w_maps = self.get_account_maps_write_lock(pubkey);