summaryrefslogtreecommitdiff
path: root/src/mongo/s/cluster_identity_loader.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-07-12 15:59:59 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-07-13 09:19:05 -0400
commitfc300ed58b943b93a3164103e4a767e3f81d1c3b (patch)
tree2ff6a0e61b4b1c40a93e83dd063f6ee3ea9ec8ca /src/mongo/s/cluster_identity_loader.cpp
parent98bb1900c5aa0c8f7ede0b9df201f9cd9b7c9da5 (diff)
downloadmongo-fc300ed58b943b93a3164103e4a767e3f81d1c3b.tar.gz
SERVER-30053 Remove 'opCtx' parameter from Grid::catalogClient()
This method is now just a simple getter and doesn't require operation context.
Diffstat (limited to 'src/mongo/s/cluster_identity_loader.cpp')
-rw-r--r--src/mongo/s/cluster_identity_loader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/cluster_identity_loader.cpp b/src/mongo/s/cluster_identity_loader.cpp
index 37a63a5cee2..d3cad97c4d7 100644
--- a/src/mongo/s/cluster_identity_loader.cpp
+++ b/src/mongo/s/cluster_identity_loader.cpp
@@ -95,7 +95,7 @@ Status ClusterIdentityLoader::loadClusterId(OperationContext* opCtx,
StatusWith<OID> ClusterIdentityLoader::_fetchClusterIdFromConfig(
OperationContext* opCtx, const repl::ReadConcernLevel& readConcernLevel) {
- auto catalogClient = Grid::get(opCtx)->catalogClient(opCtx);
+ auto catalogClient = Grid::get(opCtx)->catalogClient();
auto loadResult = catalogClient->getConfigVersion(opCtx, readConcernLevel);
if (!loadResult.isOK()) {
return Status(loadResult.getStatus().code(),