summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_request_helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/query_request_helper.cpp')
-rw-r--r--src/mongo/db/query/query_request_helper.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/query/query_request_helper.cpp b/src/mongo/db/query/query_request_helper.cpp
index 54b3c9dcf7f..bbfa90f4bec 100644
--- a/src/mongo/db/query/query_request_helper.cpp
+++ b/src/mongo/db/query/query_request_helper.cpp
@@ -152,9 +152,9 @@ void refreshNSS(const NamespaceString& nss, FindCommandRequest* findCommand) {
std::unique_ptr<FindCommandRequest> makeFromFindCommand(const BSONObj& cmdObj,
boost::optional<NamespaceString> nss,
bool apiStrict) {
- // TODO SERVER-68721: Pass tenantId from nss to the IDLParserContext
- auto findCommand = std::make_unique<FindCommandRequest>(
- FindCommandRequest::parse(IDLParserContext("FindCommandRequest", apiStrict), cmdObj));
+ auto findCommand = std::make_unique<FindCommandRequest>(FindCommandRequest::parse(
+ IDLParserContext("FindCommandRequest", apiStrict, nss ? nss->tenantId() : boost::none),
+ cmdObj));
// If there is an explicit namespace specified overwite it.
if (nss) {