When resetting stats, include the drift counters.
Change-Id: I5c0b78a9d885ed6970f219c2089bf34df3da2425
Reviewed-on: http://review.couchbase.org/69422
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
add_prefixed_stat(prefix.data(), "logical_clock_ticks", logicalClockTicks.load(), add_stat, c);
}
+ void resetStats() {
+ // Don't clear max_cas or the threshold values.
+ cummulativeDrift = 0;
+ cummulativeDriftIncrements = 0;
+ driftAheadExceeded = 0;
+ driftBehindExceeded = 0;
+ logicalClockTicks = 0;
+ }
+
private:
/*
* Returns 48-bit of t (bottom 16-bit zero)
dirtyQueueDrain.store(0);
fileSpaceUsed = 0;
fileSize = 0;
+
+ hlc.resetStats();
}
template <typename T>