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();