failed_store_id should be searched per pubkey (#27342)

This commit is contained in:
apfitzge 2022-08-23 19:12:50 -05:00 committed by GitHub
parent 2014525882
commit 66e2df8ddc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2227,8 +2227,8 @@ impl AccountsDb {
// do not match the criteria of deleting all appendvecs which contain them
// then increment their storage count.
let mut already_counted = HashSet::new();
let mut failed_store_id = None;
for (pubkey, (account_infos, ref_count_from_storage)) in purges.iter() {
let mut failed_store_id = None;
let all_stores_being_deleted =
account_infos.len() as RefCount == *ref_count_from_storage;
if all_stores_being_deleted {