diff options
author | Greg Studer <greg@10gen.com> | 2014-03-27 12:31:12 -0400 |
---|---|---|
committer | Greg Studer <greg@10gen.com> | 2014-03-31 11:48:45 -0400 |
commit | a12d09c9757301c3872cf4b45027d287e3dcc366 (patch) | |
tree | fa9730834b5ab81b0cb03ffd9e0118016eaeef70 /src/mongo/s/server.cpp | |
parent | 9de22c408e7080c8c35257302c416ca4941fa0ec (diff) | |
download | mongo-a12d09c9757301c3872cf4b45027d287e3dcc366.tar.gz |
SERVER-13374 change connection pool defaults
(cherry picked from commit f71610672b0506b233a449bfafb303497c97ae50)
Diffstat (limited to 'src/mongo/s/server.cpp')
-rw-r--r-- | src/mongo/s/server.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/s/server.cpp b/src/mongo/s/server.cpp index 4083b00ab95..3a3bb821ad3 100644 --- a/src/mongo/s/server.cpp +++ b/src/mongo/s/server.cpp @@ -324,11 +324,9 @@ static bool runMongosServer( bool doUpgrade ) { // set some global state + // Add sharding hooks to both connection pools - ShardingConnectionHook includes auth hooks pool.addHook( new ShardingConnectionHook( false ) ); - pool.setName( "mongos connectionpool" ); - shardConnectionPool.addHook( new ShardingConnectionHook( true ) ); - shardConnectionPool.setName( "mongos shardconnection connectionpool" ); // Mongos shouldn't lazily kill cursors, otherwise we can end up with extras from migration DBClientConnection::setLazyKillCursor( false ); |