summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-06-14 13:13:04 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-06-15 12:21:13 -0400
commitba6a3b8e5075f8dec1c8d3dadee6c91b7c7dc112 (patch)
tree496ca545c1a61266a0fe2e43061d79881ee30e08 /src/mongo/db/commands.cpp
parent80d45077ae98fa1961c5e9daa1c377c633ff177a (diff)
downloadmongo-ba6a3b8e5075f8dec1c8d3dadee6c91b7c7dc112.tar.gz
SERVER-18947 Remove unused catalog manager code
Diffstat (limited to 'src/mongo/db/commands.cpp')
-rw-r--r--src/mongo/db/commands.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mongo/db/commands.cpp b/src/mongo/db/commands.cpp
index 493537f049e..e0a3c2aec17 100644
--- a/src/mongo/db/commands.cpp
+++ b/src/mongo/db/commands.cpp
@@ -41,6 +41,7 @@
#include "mongo/bson/bsonobjbuilder.h"
#include "mongo/bson/mutable/document.h"
#include "mongo/client/connpool.h"
+#include "mongo/client/global_conn_pool.h"
#include "mongo/db/audit.h"
#include "mongo/db/auth/action_set.h"
#include "mongo/db/auth/action_type.h"
@@ -54,6 +55,7 @@
#include "mongo/db/server_parameters.h"
#include "mongo/rpc/get_status_from_command_result.h"
#include "mongo/rpc/metadata.h"
+#include "mongo/s/client/shard_connection.h"
#include "mongo/s/stale_exception.h"
#include "mongo/s/write_ops/wc_error_detail.h"
#include "mongo/util/log.h"
@@ -512,10 +514,6 @@ namespace {
}
}
- extern DBConnectionPool pool;
- // This is mainly used by the internal writes using write commands.
- extern DBConnectionPool shardConnectionPool;
-
class PoolFlushCmd : public Command {
public:
PoolFlushCmd() : Command( "connPoolSync" , false , "connpoolsync" ) {}
@@ -536,7 +534,7 @@ namespace {
std::string&,
mongo::BSONObjBuilder& result) {
shardConnectionPool.flush();
- pool.flush();
+ globalConnPool.flush();
return true;
}
virtual bool slaveOk() const {
@@ -563,7 +561,8 @@ namespace {
int,
std::string&,
mongo::BSONObjBuilder& result) {
- pool.appendInfo( result );
+
+ globalConnPool.appendInfo(result);
result.append( "numDBClientConnection" , DBClientConnection::getNumConnections() );
result.append( "numAScopedConnection" , AScopedConnection::getNumConnections() );
return true;