Przeglądaj źródła

Drops the shrink_candidate_slots lock after done inserting (#33459)

Brooks 2 lat temu
rodzic
commit
0e9e91c65e
1 zmienionych plików z 1 dodań i 0 usunięć
  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 {
         for slot in new_shrink_candidates {
             shrink_candidate_slots.insert(slot);
             shrink_candidate_slots.insert(slot);
         }
         }
+        drop(shrink_candidate_slots);
         measure.stop();
         measure.stop();
         self.clean_accounts_stats
         self.clean_accounts_stats
             .remove_dead_accounts_shrink_us
             .remove_dead_accounts_shrink_us