summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Wahlin <james.wahlin@10gen.com>2014-05-05 11:26:17 -0400
committerDan Pasette <dan@mongodb.com>2014-05-15 20:01:39 -0400
commit3fa0ec160da4a0858faf63f1d7ce600254594b37 (patch)
tree75a3379ba3f78f7c6bf21e5e761d172e0f7146ff
parent4649c7185dd3b7f650eb596646d4164d496e6d43 (diff)
downloadmongo-3fa0ec160da4a0858faf63f1d7ce600254594b37.tar.gz
SERVER-13794 - only start snapshot thread on isHttpInterfaceEnabled
Signed-off-by: Matt Kangas <matt.kangas@mongodb.com> (cherry picked from commit 3926d4db3aab1d65f381afcb39783da0edaa2b7e)
-rw-r--r--src/mongo/db/db.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/db.cpp b/src/mongo/db/db.cpp
index 2a5562d08bf..16519575a0b 100644
--- a/src/mongo/db/db.cpp
+++ b/src/mongo/db/db.cpp
@@ -735,7 +735,11 @@ namespace mongo {
/* this is for security on certain platforms (nonce generation) */
srand((unsigned) (curTimeMicros() ^ startupSrandTimer.micros()));
- snapshotThread.go();
+ // The snapshot thread provides historical collection level and lock statistics for use
+ // by the web interface. Only needed when HTTP is enabled.
+ if (serverGlobalParams.isHttpInterfaceEnabled)
+ snapshotThread.go();
+
d.clientCursorMonitor.go();
PeriodicTask::startRunningPeriodicTasks();
if (missingRepl) {