orderings on AcctIdx dirty (#20087)

This commit is contained in:
Jeff Washington (jwash) 2021-09-22 11:24:16 -05:00 committed by GitHub
parent 681d6d121e
commit 1eeddf2e23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -175,11 +175,11 @@ impl<T: IndexValue> AccountMapEntryInner<T> {
}
pub fn dirty(&self) -> bool {
self.meta.dirty.load(Ordering::Relaxed)
self.meta.dirty.load(Ordering::Acquire)
}
pub fn set_dirty(&self, value: bool) -> bool {
self.meta.dirty.swap(value, Ordering::Relaxed)
pub fn set_dirty(&self, value: bool) {
self.meta.dirty.store(value, Ordering::Release)
}
pub fn age(&self) -> Age {