Skip to content

Commit

Permalink
AcctIdx: maybe advance age when a bg thread wakes up (solana-labs#20250)
Browse files Browse the repository at this point in the history
* fix math error with stats calc

* AcctIdx: maybe report stats when a bg thread wakes up
  • Loading branch information
jeffwashington committed Sep 27, 2021
1 parent e94b798 commit 8266864
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runtime/src/bucket_map_holder.rs
Expand Up @@ -175,6 +175,8 @@ impl<T: IndexValue> BucketMapHolder<T> {
self.stats
.bg_waiting_us
.fetch_add(m.as_us(), Ordering::Relaxed);
// likely some time has elapsed. May have been waiting for age time interval to elapse.
self.maybe_advance_age();
}

if exit.load(Ordering::Relaxed) {
Expand Down

0 comments on commit 8266864

Please sign in to comment.