Replaces ReadAccountMapEntry in ancient append vecs (#35238)
This commit is contained in:
parent
ce72c22b3a
commit
0b5cc03aa3
|
@ -1506,11 +1506,9 @@ pub mod tests {
|
||||||
if two_refs {
|
if two_refs {
|
||||||
original_results.iter().for_each(|results| {
|
original_results.iter().for_each(|results| {
|
||||||
results.stored_accounts.iter().for_each(|account| {
|
results.stored_accounts.iter().for_each(|account| {
|
||||||
let entry = db
|
db.accounts_index.get_and_then(account.pubkey(), |entry| {
|
||||||
.accounts_index
|
(false, entry.unwrap().addref())
|
||||||
.get_account_read_entry(account.pubkey())
|
});
|
||||||
.unwrap();
|
|
||||||
entry.addref();
|
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1854,11 +1852,8 @@ pub mod tests {
|
||||||
);
|
);
|
||||||
original_results.iter().for_each(|results| {
|
original_results.iter().for_each(|results| {
|
||||||
results.stored_accounts.iter().for_each(|account| {
|
results.stored_accounts.iter().for_each(|account| {
|
||||||
let entry = db
|
db.accounts_index
|
||||||
.accounts_index
|
.get_and_then(account.pubkey(), |entry| (true, entry.unwrap().addref()));
|
||||||
.get_account_read_entry(account.pubkey())
|
|
||||||
.unwrap();
|
|
||||||
entry.addref();
|
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue