diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2018-08-14 13:03:03 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2018-08-15 12:57:32 -0400 |
commit | fab6864f4edcae7bb304f79e601f1f62cc376a77 (patch) | |
tree | ab6dd5752b59d7af969ab193c24e47a3a36a4d07 /src/mongo/s/sharding_initialization.cpp | |
parent | f61c4e4e9960a00d8da16c1053cd702972f90995 (diff) | |
download | mongo-fab6864f4edcae7bb304f79e601f1f62cc376a77.tar.gz |
SERVER-29908 Fold the 'sharding_connection_hook' library into 'sharding_initialization'
... and also remove dependency of MongoS on the replication coordinator
Diffstat (limited to 'src/mongo/s/sharding_initialization.cpp')
-rw-r--r-- | src/mongo/s/sharding_initialization.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/s/sharding_initialization.cpp b/src/mongo/s/sharding_initialization.cpp index c090379b83b..af635690253 100644 --- a/src/mongo/s/sharding_initialization.cpp +++ b/src/mongo/s/sharding_initialization.cpp @@ -35,13 +35,11 @@ #include <string> #include "mongo/base/status.h" -#include "mongo/client/remote_command_targeter_factory_impl.h" #include "mongo/db/audit.h" #include "mongo/db/keys_collection_client_sharded.h" #include "mongo/db/keys_collection_manager.h" #include "mongo/db/logical_clock.h" #include "mongo/db/logical_time_validator.h" -#include "mongo/db/repl/replication_coordinator.h" #include "mongo/db/server_options.h" #include "mongo/db/server_parameters.h" #include "mongo/db/service_context.h" @@ -255,12 +253,6 @@ Status initializeGlobalShardingState(OperationContext* opCtx, LogicalTimeValidator::set(opCtx->getServiceContext(), stdx::make_unique<LogicalTimeValidator>(keyManager)); - auto replCoord = repl::ReplicationCoordinator::get(opCtx->getClient()->getServiceContext()); - if (serverGlobalParams.clusterRole == ClusterRole::ConfigServer && - replCoord->getMemberState().primary()) { - LogicalTimeValidator::get(opCtx)->enableKeyGenerator(opCtx, true); - } - return Status::OK(); } |