Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 355e09e

Browse files
authored
runtime: fix possible deadlock in in_mem_accounts_index (#26046)
1 parent 102fb98 commit 355e09e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

runtime/src/in_mem_accounts_index.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
147147
result.push((*k, Arc::clone(v)));
148148
}
149149
});
150+
drop(map);
150151
self.hold_range_in_memory(range, false);
151152
Self::update_stat(&self.stats().items, 1);
152153
Self::update_time_stat(&self.stats().items_us, m);

0 commit comments

Comments
 (0)