From 1258701725ebd07a9811d025298530bf5756064b Mon Sep 17 00:00:00 2001 From: Brooks Date: Mon, 2 Dec 2024 18:09:39 -0500 Subject: [PATCH] Removes index's root check in get_snapshot_storages() (#3784) --- accounts-db/src/accounts_db.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/accounts-db/src/accounts_db.rs b/accounts-db/src/accounts_db.rs index 92fce18d231904..d062135f996f7f 100644 --- a/accounts-db/src/accounts_db.rs +++ b/accounts-db/src/accounts_db.rs @@ -8475,20 +8475,9 @@ impl AccountsDb { requested_slots: impl RangeBounds + Sync, ) -> (Vec>, Vec) { let start = Instant::now(); - let max_alive_root_exclusive = self - .accounts_index - .roots_tracker - .read() - .unwrap() - .alive_roots - .max_exclusive(); let (slots, storages) = self .storage - .get_if(|slot, storage| { - (*slot < max_alive_root_exclusive) - && requested_slots.contains(slot) - && storage.has_accounts() - }) + .get_if(|slot, storage| requested_slots.contains(slot) && storage.has_accounts()) .into_vec() .into_iter() .unzip();