Details
-
Improvement
-
Resolution: Fixed
-
Major
-
4.6.0
Description
See comments on http://review.couchbase.org/#/c/71572/3/src/vbucket.cc@967 - we unnecessarily check that hrtime_t could go backwards, which isn't possible if we use ProcessClock:
void VBucket::updateBGStats(const hrtime_t init, |
const hrtime_t start, |
const hrtime_t stop) { |
if (stop >= start && start >= init) { |
....
|
Should replace uses of hrtime_t here with ProcessClock (when we are measuring the duration of something in a single thread).
Attachments
For Gerrit Dashboard: MB-22383 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
74106,7 | MB-22383: Use ProcessClock instead of hrtime_t | master | ep-engine | Status: MERGED | +2 | +1 |
74326,2 | MB-22383: Correct time units | master | ep-engine | Status: MERGED | +2 | +1 |