Skip to content

Commit

Permalink
MB-45090: Initialize couchstore write-ampl stats to 0
Browse files Browse the repository at this point in the history
Change-Id: I4006c990b503e868cad1dc461c6c6c2404942013
Reviewed-on: http://review.couchbase.org/c/kv_engine/+/149311
Reviewed-by: Trond Norbye <trond.norbye@couchbase.com>
Tested-by: Paolo Cocchi <paolo.cocchi@couchbase.com>
  • Loading branch information
paolococchi committed Mar 23, 2021
1 parent 383dcc3 commit 99d8fbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/ep/src/ep_engine.cc
Expand Up @@ -2665,7 +2665,7 @@ void EventuallyPersistentEngine::doEngineStatsCouchDB(const BucketStatCollector&
auto printWriteAmpStat = [this, &collector, docBytes = value](
const char* writeBytesStat,
const char* writeAmpStat) {
double writeAmp = std::numeric_limits<double>::infinity();
double writeAmp = 0;
size_t bytesWritten;
if (docBytes &&
kvBucket->getKVStoreStat(writeBytesStat,
Expand Down

0 comments on commit 99d8fbf

Please sign in to comment.