Set ordering flushing_active.swap() to AcqRel (#23567)

This commit is contained in:
Brooks Prumo
2022-03-09 19:22:42 -06:00
committed by GitHub
parent e60c9b97c9
commit 1fe0d6eeeb

View File

@ -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;