summaryrefslogtreecommitdiff
path: root/src/mongo/s/server.cpp
diff options
context:
space:
mode:
authorSiyuan Zhou <visualzhou@gmail.com>2015-06-26 20:54:55 -0400
committerSiyuan Zhou <visualzhou@gmail.com>2015-06-26 20:54:55 -0400
commit8910277205b7b1cc52e4650c38172f801c522597 (patch)
treea4d5b3009e1ce115efa6d988b7ef873c13adbc4a /src/mongo/s/server.cpp
parentacd34c682c9e602ab1ed65d517b79a4bb575bf6a (diff)
downloadmongo-8910277205b7b1cc52e4650c38172f801c522597.tar.gz
Revert "SERVER-19004 Get rid of Shard::runCommand"
This reverts commit ce22d7ea21ad0f529b0dbb4e0b9264d1a68637ff.
Diffstat (limited to 'src/mongo/s/server.cpp')
-rw-r--r--src/mongo/s/server.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/s/server.cpp b/src/mongo/s/server.cpp
index 2a03d2123b9..be3f6001398 100644
--- a/src/mongo/s/server.cpp
+++ b/src/mongo/s/server.cpp
@@ -38,6 +38,7 @@
#include "mongo/client/connpool.h"
#include "mongo/client/dbclient_rs.h"
#include "mongo/client/global_conn_pool.h"
+#include "mongo/client/remote_command_runner_impl.h"
#include "mongo/client/remote_command_targeter_factory_impl.h"
#include "mongo/client/replica_set_monitor.h"
#include "mongo/config.h"
@@ -229,6 +230,7 @@ static ExitCode runMongosServer(bool doUpgrade) {
auto shardRegistry(
stdx::make_unique<ShardRegistry>(stdx::make_unique<RemoteCommandTargeterFactoryImpl>(),
+ stdx::make_unique<RemoteCommandRunnerImpl>(0),
stdx::make_unique<repl::ReplicationExecutor>(
new executor::NetworkInterfaceImpl(), nullptr, 0),
nullptr,