summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/find_cmd.cpp
diff options
context:
space:
mode:
authorSophia Tan <sophia_tll@hotmail.com>2022-08-06 13:08:33 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-06 14:00:55 +0000
commitf6b846940b815af7604363baff63be21967ea379 (patch)
treeb76163ae15b9932817ac1b79943d42aba682d3f6 /src/mongo/db/commands/find_cmd.cpp
parent2bd58dc5ae6f9c5af504a9210f45eb46683ee8f8 (diff)
downloadmongo-f6b846940b815af7604363baff63be21967ea379.tar.gz
SERVER-68598 Change CommandHelpers::parseNsOrUUID to take in DatabaseName
Diffstat (limited to 'src/mongo/db/commands/find_cmd.cpp')
-rw-r--r--src/mongo/db/commands/find_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/find_cmd.cpp b/src/mongo/db/commands/find_cmd.cpp
index 91f67ce2f58..5410d77ccc0 100644
--- a/src/mongo/db/commands/find_cmd.cpp
+++ b/src/mongo/db/commands/find_cmd.cpp
@@ -277,7 +277,7 @@ public:
uassertStatusOK(auth::checkAuthForFind(
authSession,
CollectionCatalog::get(opCtx)->resolveNamespaceStringOrUUID(
- opCtx, CommandHelpers::parseNsOrUUID(_dbName, _request.body)),
+ opCtx, CommandHelpers::parseNsOrUUID({boost::none, _dbName}, _request.body)),
hasTerm));
}
@@ -462,7 +462,7 @@ public:
// request into an aggregation command.
boost::optional<AutoGetCollectionForReadCommandMaybeLockFree> ctx;
ctx.emplace(opCtx,
- CommandHelpers::parseNsOrUUID(_dbName, _request.body),
+ CommandHelpers::parseNsOrUUID({boost::none, _dbName}, _request.body),
AutoGetCollectionViewMode::kViewsPermitted);
const auto& nss = ctx->getNss();