summaryrefslogtreecommitdiff
path: root/src/mongo/db/db.cpp
diff options
context:
space:
mode:
authorJames Wahlin <james.wahlin@10gen.com>2014-05-05 11:26:17 -0400
committerMatt Kangas <matt.kangas@mongodb.com>2014-05-07 16:50:26 -0400
commit3926d4db3aab1d65f381afcb39783da0edaa2b7e (patch)
tree7bdec6a6bcb2ab8ade3e67c634ecb819ebe9b7e3 /src/mongo/db/db.cpp
parent8646695444b00a5965f0bd939c5c5c2bc8d4d252 (diff)
downloadmongo-3926d4db3aab1d65f381afcb39783da0edaa2b7e.tar.gz
SERVER-13794 - only start snapshot thread on isHttpInterfaceEnabled
Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Diffstat (limited to 'src/mongo/db/db.cpp')
-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 d769d3e7fa6..5d9c01ea63c 100644
--- a/src/mongo/db/db.cpp
+++ b/src/mongo/db/db.cpp
@@ -731,7 +731,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) {