Skip to content
Browse files

SERVER-9022: command line option for releaseConnectionsAfterResponse

  • Loading branch information...
1 parent 415ccd3 commit 5d5fe49dfb5f452832b9d44fddbfb2a4e8b42f2a @monkey101 monkey101 committed
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/mongo/s/server.cpp
View
6 src/mongo/s/server.cpp
@@ -309,6 +309,7 @@ int _main(int argc, char* argv[]) {
("nohttpinterface", "disable http interface");
hidden_options.add_options()
+ ("releaseConnectionsAfterResponse", "" )
("noAutoSplit", "do not send split commands with writes");
#if defined(_WIN32)
@@ -402,6 +403,11 @@ int _main(int argc, char* argv[]) {
Chunk::ShouldAutoSplit = false;
}
+ if (params.count("releaseConnectionsAfterResponse")) {
+ warning() << "releaseConnectionsAfterResponse set to true" << endl;
+ ShardConnection::releaseConnectionsAfterResponse = true;
+ }
+
if ( ! params.count( "configdb" ) ) {
out() << "error: no args for --configdb" << endl;
return 4;

0 comments on commit 5d5fe49

Please sign in to comment.
Something went wrong with that request. Please try again.