Skip to content

Commit

Permalink
runtime: fix possible deadlock in in_mem_accounts_index (#26046)
Browse files Browse the repository at this point in the history
  • Loading branch information
BurtonQin authored Jun 23, 2022
1 parent 102fb98 commit 355e09e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtime/src/in_mem_accounts_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
result.push((*k, Arc::clone(v)));
}
});
drop(map);
self.hold_range_in_memory(range, false);
Self::update_stat(&self.stats().items, 1);
Self::update_time_stat(&self.stats().items_us, m);
Expand Down

0 comments on commit 355e09e

Please sign in to comment.