allow index update to change storage slot # (#23311)

This commit is contained in:
Jeff Washington (jwash)
2022-03-03 08:40:48 -06:00
committed by GitHub
parent 4b59bfe6d8
commit a99fd09c16
3 changed files with 262 additions and 32 deletions

View File

@@ -1760,7 +1760,7 @@ impl<T: IndexValue> AccountsIndex<T> {
pub fn upsert(
&self,
new_slot: Slot,
_old_slot: Slot,
old_slot: Slot,
pubkey: &Pubkey,
account: &impl ReadableAccount,
account_indexes: &AccountSecondaryIndexes,
@@ -1795,7 +1795,7 @@ impl<T: IndexValue> AccountsIndex<T> {
r_account_maps.upsert(
pubkey,
new_item,
None,
Some(old_slot),
reclaims,
previous_slot_entry_was_cached,
);