add data to assert (#25749)

This commit is contained in:
Jeff Washington (jwash) 2022-06-03 09:32:43 -05:00 committed by GitHub
parent b4a32f2e8d
commit 779ec564e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -72,7 +72,12 @@ impl<T: IndexValue> BucketMapHolder<T> {
// fetch_add is defined to wrap. // fetch_add is defined to wrap.
// That's what we want. 0..255, then back to 0. // That's what we want. 0..255, then back to 0.
self.age.fetch_add(1, Ordering::Release); self.age.fetch_add(1, Ordering::Release);
assert!(previous >= self.bins); // we should not have increased age before previous age was fully flushed assert!(
previous >= self.bins,
"previous: {}, bins: {}",
previous,
self.bins
); // we should not have increased age before previous age was fully flushed
self.wait_dirty_or_aged.notify_all(); // notify all because we can age scan in parallel self.wait_dirty_or_aged.notify_all(); // notify all because we can age scan in parallel
} }