瀏覽代碼

Drops the shrink_candidate_slots lock after done inserting (#33459)

Brooks 2 年之前
父節點
當前提交
0e9e91c65e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      accounts-db/src/accounts_db.rs

+ 1 - 0
accounts-db/src/accounts_db.rs

@@ -8229,6 +8229,7 @@ impl AccountsDb {
         for slot in new_shrink_candidates {
             shrink_candidate_slots.insert(slot);
         }
+        drop(shrink_candidate_slots);
         measure.stop();
         self.clean_accounts_stats
             .remove_dead_accounts_shrink_us