orderings on AcctIdx dirty (#20087)
This commit is contained in:
parent
681d6d121e
commit
1eeddf2e23
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue