summaryrefslogtreecommitdiff
path: root/src/mongo/util/progress_meter.cpp
diff options
context:
space:
mode:
authorAdam Midvidy <amidvidy@gmail.com>2015-10-22 18:09:25 -0400
committerAdam Midvidy <amidvidy@gmail.com>2015-10-30 15:49:29 -0400
commit22e46bcc813a09d62f45f0779188930ee8d31b9a (patch)
tree0f8afdc65ab8b8eb5831cacf2d2349d731e30c81 /src/mongo/util/progress_meter.cpp
parent791c412874ce87d9cc1eac75edce8116a9d40640 (diff)
downloadmongo-22e46bcc813a09d62f45f0779188930ee8d31b9a.tar.gz
SERVER-20609 optimize OpDebug and CurOp construction
- replace assignment with NSDMI - remove the giant ThreadSafeString from CurOp - remove unnecessary reset() call to opDebug in assembleResponse
Diffstat (limited to 'src/mongo/util/progress_meter.cpp')
-rw-r--r--src/mongo/util/progress_meter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/progress_meter.cpp b/src/mongo/util/progress_meter.cpp
index 50575aff98a..2249c836750 100644
--- a/src/mongo/util/progress_meter.cpp
+++ b/src/mongo/util/progress_meter.cpp
@@ -49,7 +49,7 @@ void ProgressMeter::reset(unsigned long long total, int secondsBetween, int chec
_hits = 0;
_lastTime = (int)time(0);
- _active = 1;
+ _active = true;
}