Set ordering flushing_active.swap() to AcqRel (#23567)
This commit is contained in:
parent
e60c9b97c9
commit
1fe0d6eeeb
|
@ -864,7 +864,7 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
|
|||
}
|
||||
|
||||
pub(crate) fn flush(&self) {
|
||||
let flushing = self.flushing_active.swap(true, Ordering::Acquire);
|
||||
let flushing = self.flushing_active.swap(true, Ordering::AcqRel);
|
||||
if flushing {
|
||||
// already flushing in another thread
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue