AcctIdx: maybe advance age when a bg thread wakes up (#20250)
* fix math error with stats calc * AcctIdx: maybe report stats when a bg thread wakes up
This commit is contained in:
parent
e94b7984a1
commit
8266864adc
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue