diff options
author | Mathias Stearn <mathias@10gen.com> | 2015-07-23 13:24:14 -0400 |
---|---|---|
committer | Mathias Stearn <redbeard0531@gmail.com> | 2015-07-28 14:22:57 -0400 |
commit | 0e5875d237ee4f113c63470521a9991dcf0807c7 (patch) | |
tree | d043c29eb6c3244074473b3bcfc5187b5e96f1c3 | |
parent | 1800d67e551de19d27cc7a477793c3ed32be9285 (diff) | |
download | mongo-0e5875d237ee4f113c63470521a9991dcf0807c7.tar.gz |
SERVER-19553 Make mongod not use sayPiggyBack for KillCursor messages
(cherry picked from commit 7cdd8036184934ef5ef42907f890b6603cd891a7)
-rw-r--r-- | src/mongo/db/db.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/db.cpp b/src/mongo/db/db.cpp index d2f495d4c9d..90a8013dba2 100644 --- a/src/mongo/db/db.cpp +++ b/src/mongo/db/db.cpp @@ -993,6 +993,9 @@ static int mongoDbMain(int argc, char* argv[], char **envp) { setupSignalHandlers(); + // Mongod shouldn't lazily kill cursors. It doesn't mix well with connection pooling. + DBClientConnection::setLazyKillCursor(false); + dbExecCommand = argv[0]; srand(curTimeMicros()); |