summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_commands_helpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/commands/cluster_commands_helpers.cpp')
-rw-r--r--src/mongo/s/commands/cluster_commands_helpers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/commands/cluster_commands_helpers.cpp b/src/mongo/s/commands/cluster_commands_helpers.cpp
index 1dfdd40271d..ffda19bfc27 100644
--- a/src/mongo/s/commands/cluster_commands_helpers.cpp
+++ b/src/mongo/s/commands/cluster_commands_helpers.cpp
@@ -409,7 +409,7 @@ std::vector<NamespaceString> getAllShardedCollectionsForDb(OperationContext* opC
const auto dbNameStr = dbName.toString();
std::vector<CollectionType> collectionsOnConfig;
- uassertStatusOK(Grid::get(opCtx)->catalogClient(opCtx)->getCollections(
+ uassertStatusOK(Grid::get(opCtx)->catalogClient()->getCollections(
opCtx, &dbNameStr, &collectionsOnConfig, nullptr));
std::vector<NamespaceString> collectionsToReturn;
@@ -438,7 +438,7 @@ StatusWith<CachedDatabaseInfo> createShardDatabase(OperationContext* opCtx, Stri
auto dbStatus = Grid::get(opCtx)->catalogCache()->getDatabase(opCtx, dbName);
if (dbStatus == ErrorCodes::NamespaceNotFound) {
auto createDbStatus =
- Grid::get(opCtx)->catalogClient(opCtx)->createDatabase(opCtx, dbName.toString());
+ Grid::get(opCtx)->catalogClient()->createDatabase(opCtx, dbName.toString());
if (createDbStatus.isOK() || createDbStatus == ErrorCodes::NamespaceExists) {
dbStatus = Grid::get(opCtx)->catalogCache()->getDatabase(opCtx, dbName);
} else {