summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_drop_cmd.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/commands/cluster_drop_cmd.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/commands/cluster_drop_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_drop_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/commands/cluster_drop_cmd.cpp b/src/mongo/s/commands/cluster_drop_cmd.cpp
index 159070dce24..fd05eae78dd 100644
--- a/src/mongo/s/commands/cluster_drop_cmd.cpp
+++ b/src/mongo/s/commands/cluster_drop_cmd.cpp
@@ -89,7 +89,7 @@ public:
if (!routingInfo.cm()) {
_dropUnshardedCollectionFromShard(opCtx, routingInfo.primaryId(), nss, &result);
} else {
- uassertStatusOK(Grid::get(opCtx)->catalogClient(opCtx)->dropCollection(opCtx, nss));
+ uassertStatusOK(Grid::get(opCtx)->catalogClient()->dropCollection(opCtx, nss));
catalogCache->invalidateShardedCollection(nss);
}
@@ -105,7 +105,7 @@ private:
const ShardId& shardId,
const NamespaceString& nss,
BSONObjBuilder* result) {
- const auto catalogClient = Grid::get(opCtx)->catalogClient(opCtx);
+ const auto catalogClient = Grid::get(opCtx)->catalogClient();
const auto shardRegistry = Grid::get(opCtx)->shardRegistry();
auto scopedDistLock = uassertStatusOK(catalogClient->getDistLockManager()->lock(