diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-09-18 17:17:31 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-09-19 14:36:38 -0400 |
commit | aed4f47200abff44605fc39f078601ebb0c316c7 (patch) | |
tree | 3878b3d69096d9428f69a349a29c618842091147 /src/mongo/s/sharding_initialization.cpp | |
parent | 6350b1f9f11a8f4971f15859426a0c991be39205 (diff) | |
download | mongo-aed4f47200abff44605fc39f078601ebb0c316c7.tar.gz |
SERVER-26155 Use read concern 'local' for dist lock manager on the config server
Diffstat (limited to 'src/mongo/s/sharding_initialization.cpp')
-rw-r--r-- | src/mongo/s/sharding_initialization.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/s/sharding_initialization.cpp b/src/mongo/s/sharding_initialization.cpp index 0c46df7a3cd..5ae5edf9593 100644 --- a/src/mongo/s/sharding_initialization.cpp +++ b/src/mongo/s/sharding_initialization.cpp @@ -84,7 +84,8 @@ std::unique_ptr<ThreadPoolTaskExecutor> makeTaskExecutor(std::unique_ptr<Network std::unique_ptr<ShardingCatalogClient> makeCatalogClient(ServiceContext* service, ShardRegistry* shardRegistry, StringData distLockProcessId) { - auto distLockCatalog = stdx::make_unique<DistLockCatalogImpl>(shardRegistry); + auto distLockCatalog = stdx::make_unique<DistLockCatalogImpl>( + shardRegistry, serverGlobalParams.clusterRole == ClusterRole::ConfigServer); auto distLockManager = stdx::make_unique<ReplSetDistLockManager>(service, distLockProcessId, |