From f0a235d16fd21da11176c21297176234121a3d8c Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Mon, 28 Feb 2022 15:18:42 -0600 Subject: [PATCH] add comment (#23378) --- runtime/src/in_mem_accounts_index.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtime/src/in_mem_accounts_index.rs b/runtime/src/in_mem_accounts_index.rs index 5fd4e1cfc..484b74277 100644 --- a/runtime/src/in_mem_accounts_index.rs +++ b/runtime/src/in_mem_accounts_index.rs @@ -468,6 +468,10 @@ impl InMemAccountsIndex { /// any entry at 'slot' is replaced with 'account_info'. /// or, 'account_info' is appended to the slot list if the slot did not exist previously. /// returns true if caller should addref + /// conditions when caller should addref: + /// 'account_info' does NOT represent a cached storage (the slot is being flushed from the cache) + /// AND + /// previous slot_list entry AT 'slot' did not exist (this is the first time this account was modified in this "slot"), or was previously cached (the storage is now being flushed from the cache) fn update_slot_list( slot_list: &mut SlotList, slot: Slot,