From 9c2ed42daa8fbbef4a919c21ec564e2db55e8d60 Mon Sep 17 00:00:00 2001 From: Mark Benvenuto Date: Sat, 20 Jun 2015 00:22:50 -0400 Subject: SERVER-18579: Clang-Format - reformat code, no comment reflow --- src/mongo/db/conn_pool_options.cpp | 58 ++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 30 deletions(-) (limited to 'src/mongo/db/conn_pool_options.cpp') diff --git a/src/mongo/db/conn_pool_options.cpp b/src/mongo/db/conn_pool_options.cpp index 5fd4c1ffb9d..71cb840cd7e 100644 --- a/src/mongo/db/conn_pool_options.cpp +++ b/src/mongo/db/conn_pool_options.cpp @@ -38,41 +38,39 @@ namespace mongo { - int ConnPoolOptions::maxConnsPerHost(200); - int ConnPoolOptions::maxShardedConnsPerHost(200); +int ConnPoolOptions::maxConnsPerHost(200); +int ConnPoolOptions::maxShardedConnsPerHost(200); - namespace { +namespace { - ExportedServerParameter // - maxConnsPerHostParameter(ServerParameterSet::getGlobal(), - "connPoolMaxConnsPerHost", - &ConnPoolOptions::maxConnsPerHost, - true, - false /* can't change at runtime */); +ExportedServerParameter // + maxConnsPerHostParameter(ServerParameterSet::getGlobal(), + "connPoolMaxConnsPerHost", + &ConnPoolOptions::maxConnsPerHost, + true, + false /* can't change at runtime */); - ExportedServerParameter // - maxShardedConnsPerHostParameter(ServerParameterSet::getGlobal(), - "connPoolMaxShardedConnsPerHost", - &ConnPoolOptions::maxShardedConnsPerHost, - true, - false /* can't change at runtime */); +ExportedServerParameter // + maxShardedConnsPerHostParameter(ServerParameterSet::getGlobal(), + "connPoolMaxShardedConnsPerHost", + &ConnPoolOptions::maxShardedConnsPerHost, + true, + false /* can't change at runtime */); - MONGO_INITIALIZER(InitializeConnectionPools)(InitializerContext* context) { +MONGO_INITIALIZER(InitializeConnectionPools)(InitializerContext* context) { + // Initialize the sharded and unsharded outgoing connection pools + // NOTES: + // - All mongods and mongoses have both pools + // - The connection hooks for sharding are added on startup (mongos) or on first sharded + // operation (mongod) - // Initialize the sharded and unsharded outgoing connection pools - // NOTES: - // - All mongods and mongoses have both pools - // - The connection hooks for sharding are added on startup (mongos) or on first sharded - // operation (mongod) + globalConnPool.setName("connection pool"); + globalConnPool.setMaxPoolSize(ConnPoolOptions::maxConnsPerHost); - globalConnPool.setName("connection pool"); - globalConnPool.setMaxPoolSize(ConnPoolOptions::maxConnsPerHost); - - shardConnectionPool.setName("sharded connection pool"); - shardConnectionPool.setMaxPoolSize(ConnPoolOptions::maxShardedConnsPerHost); - - return Status::OK(); - } - } + shardConnectionPool.setName("sharded connection pool"); + shardConnectionPool.setMaxPoolSize(ConnPoolOptions::maxShardedConnsPerHost); + return Status::OK(); +} +} } -- cgit v1.2.1