diff options
author | James Wahlin <james.wahlin@10gen.com> | 2014-05-05 11:26:17 -0400 |
---|---|---|
committer | Matt Kangas <matt.kangas@mongodb.com> | 2014-05-07 16:50:26 -0400 |
commit | 3926d4db3aab1d65f381afcb39783da0edaa2b7e (patch) | |
tree | 7bdec6a6bcb2ab8ade3e67c634ecb819ebe9b7e3 /src/mongo | |
parent | 8646695444b00a5965f0bd939c5c5c2bc8d4d252 (diff) | |
download | mongo-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')
-rw-r--r-- | src/mongo/db/db.cpp | 6 |
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) { |