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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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;