AcctIdx: consolidate to correct CondVar (#20017)

This commit is contained in:
Jeff Washington (jwash)
2021-09-20 09:58:20 -05:00
committed by GitHub
parent 55d9ff9899
commit e6934e7247
3 changed files with 10 additions and 11 deletions

View File

@@ -397,6 +397,8 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
pub fn set_bin_dirty(&self) {
self.bin_dirty.store(true, Ordering::Release);
// 1 bin dirty, so only need 1 thread to wake up if many could be waiting
self.storage.wait_dirty_or_aged.notify_one();
}
fn flush_internal(&self) {