AcctIdx: initialze stats with # bins (#20088)
This commit is contained in:
committed by
GitHub
parent
b918c2f4cd
commit
9e9417b474
@ -129,7 +129,7 @@ impl<T: IndexValue> BucketMapHolder<T> {
|
|||||||
ages_to_stay_in_cache,
|
ages_to_stay_in_cache,
|
||||||
count_ages_flushed: AtomicUsize::default(),
|
count_ages_flushed: AtomicUsize::default(),
|
||||||
age: AtomicU8::default(),
|
age: AtomicU8::default(),
|
||||||
stats: BucketMapHolderStats::default(),
|
stats: BucketMapHolderStats::new(bins),
|
||||||
wait_dirty_or_aged: WaitableCondvar::default(),
|
wait_dirty_or_aged: WaitableCondvar::default(),
|
||||||
next_bucket_to_flush: Mutex::new(0),
|
next_bucket_to_flush: Mutex::new(0),
|
||||||
age_timer: AtomicInterval::default(),
|
age_timer: AtomicInterval::default(),
|
||||||
|
Reference in New Issue
Block a user