From 722f06f3217c029ef9c50062c8cc775966fd7ead Mon Sep 17 00:00:00 2001 From: Ian Boros Date: Wed, 19 Dec 2018 18:28:59 -0500 Subject: SERVER-38275 ban find explain with UUID --- src/mongo/db/commands/find_cmd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mongo/db/commands/find_cmd.cpp') diff --git a/src/mongo/db/commands/find_cmd.cpp b/src/mongo/db/commands/find_cmd.cpp index 55d5858365e..f92fbbc62de 100644 --- a/src/mongo/db/commands/find_cmd.cpp +++ b/src/mongo/db/commands/find_cmd.cpp @@ -152,11 +152,11 @@ public: void explain(OperationContext* opCtx, ExplainOptions::Verbosity verbosity, rpc::ReplyBuilderInterface* result) override { - // Acquire locks and resolve possible UUID. The RAII object is optional, because in the - // case of a view, the locks need to be released. + // Acquire locks. The RAII object is optional, because in the case of a view, the locks + // need to be released. boost::optional ctx; ctx.emplace(opCtx, - CommandHelpers::parseNsOrUUID(_dbName, _request.body), + CommandHelpers::parseNsCollectionRequired(_dbName, _request.body), AutoGetCollection::ViewMode::kViewsPermitted); const auto nss = ctx->getNss(); -- cgit v1.2.1