diff options
| author | Randolph Tan <randolph@10gen.com> | 2017-03-09 17:16:55 -0500 |
|---|---|---|
| committer | Randolph Tan <randolph@10gen.com> | 2017-03-10 13:11:07 -0500 |
| commit | a8d1a9d89f374969266ffddee158fef03cdbf174 (patch) | |
| tree | 4b3d58ca3ac4be55b4395d746331c60479a38590 /src/mongo/s/server.cpp | |
| parent | a067d77c06242aed80ccbf9e6d03b6a054849ffa (diff) | |
| download | mongo-a8d1a9d89f374969266ffddee158fef03cdbf174.tar.gz | |
SERVER-27750 Always attach the configsvr metadata in ShardingEgress*Hooks
Diffstat (limited to 'src/mongo/s/server.cpp')
| -rw-r--r-- | src/mongo/s/server.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/s/server.cpp b/src/mongo/s/server.cpp index d3a797b3a49..7255c8810de 100644 --- a/src/mongo/s/server.cpp +++ b/src/mongo/s/server.cpp @@ -207,7 +207,7 @@ static Status initializeSharding(OperationContext* opCtx) { auto hookList = stdx::make_unique<rpc::EgressMetadataHookList>(); hookList->addHook( stdx::make_unique<rpc::LogicalTimeMetadataHook>(opCtx->getServiceContext())); - hookList->addHook(stdx::make_unique<rpc::ShardingEgressMetadataHookForMongos>(false)); + hookList->addHook(stdx::make_unique<rpc::ShardingEgressMetadataHookForMongos>()); return hookList; }, [](ShardingCatalogClient* catalogClient, std::unique_ptr<executor::TaskExecutor> executor) { @@ -260,7 +260,7 @@ static ExitCode runMongosServer() { auto unshardedHookList = stdx::make_unique<rpc::EgressMetadataHookList>(); unshardedHookList->addHook( stdx::make_unique<rpc::LogicalTimeMetadataHook>(getGlobalServiceContext())); - unshardedHookList->addHook(stdx::make_unique<rpc::ShardingEgressMetadataHookForMongos>(false)); + unshardedHookList->addHook(stdx::make_unique<rpc::ShardingEgressMetadataHookForMongos>()); // Add sharding hooks to both connection pools - ShardingConnectionHook includes auth hooks globalConnPool.addHook(new ShardingConnectionHook(false, std::move(unshardedHookList))); @@ -268,7 +268,7 @@ static ExitCode runMongosServer() { auto shardedHookList = stdx::make_unique<rpc::EgressMetadataHookList>(); shardedHookList->addHook( stdx::make_unique<rpc::LogicalTimeMetadataHook>(getGlobalServiceContext())); - shardedHookList->addHook(stdx::make_unique<rpc::ShardingEgressMetadataHookForMongos>(true)); + shardedHookList->addHook(stdx::make_unique<rpc::ShardingEgressMetadataHookForMongos>()); shardConnectionPool.addHook(new ShardingConnectionHook(true, std::move(shardedHookList))); |
