Replaces ReadAccountMapEntry in ancient append vecs (#35238)

This commit is contained in:
Brooks 2024-02-20 13:52:11 -05:00 committed by GitHub
parent ce72c22b3a
commit 0b5cc03aa3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 10 deletions

View File

@ -1506,11 +1506,9 @@ pub mod tests {
if two_refs {
original_results.iter().for_each(|results| {
results.stored_accounts.iter().for_each(|account| {
let entry = db
.accounts_index
.get_account_read_entry(account.pubkey())
.unwrap();
entry.addref();
db.accounts_index.get_and_then(account.pubkey(), |entry| {
(false, entry.unwrap().addref())
});
})
});
}
@ -1854,11 +1852,8 @@ pub mod tests {
);
original_results.iter().for_each(|results| {
results.stored_accounts.iter().for_each(|account| {
let entry = db
.accounts_index
.get_account_read_entry(account.pubkey())
.unwrap();
entry.addref();
db.accounts_index
.get_and_then(account.pubkey(), |entry| (true, entry.unwrap().addref()));
})
});