fix ordering in disk idx (#25735)

This commit is contained in:
Jeff Washington (jwash) 2022-06-02 11:50:44 -05:00 committed by GitHub
parent d3ac4e941b
commit ddd0ed0af1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -102,12 +102,12 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
/// called after flush scans this bucket at the current age
fn set_has_aged(&self, age: Age) {
self.last_age_flushed.store(age, Ordering::Relaxed);
self.last_age_flushed.store(age, Ordering::Release);
self.storage.bucket_flushed_at_current_age();
}
fn last_age_flushed(&self) -> Age {
self.last_age_flushed.load(Ordering::Relaxed)
self.last_age_flushed.load(Ordering::Acquire)
}
fn map(&self) -> &RwLock<HashMap<Pubkey, AccountMapEntry<T>>> {