diff options
author | Sophia Tan <sophia_tll@hotmail.com> | 2022-08-06 13:08:33 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-06 14:00:55 +0000 |
commit | f6b846940b815af7604363baff63be21967ea379 (patch) | |
tree | b76163ae15b9932817ac1b79943d42aba682d3f6 /src/mongo/db/commands/find_cmd.cpp | |
parent | 2bd58dc5ae6f9c5af504a9210f45eb46683ee8f8 (diff) | |
download | mongo-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.cpp | 4 |
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(); |