summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/find_cmd.cpp
diff options
context:
space:
mode:
authorIan Boros <ian.boros@10gen.com>2018-12-19 18:28:59 -0500
committerIan Boros <ian.boros@10gen.com>2019-01-09 11:54:50 -0500
commit722f06f3217c029ef9c50062c8cc775966fd7ead (patch)
treebf5a58dd05c538de5679320cef5c450964c815da /src/mongo/db/commands/find_cmd.cpp
parent4b1afd3e3873b8b46804264e38bb39e0423f54dd (diff)
downloadmongo-722f06f3217c029ef9c50062c8cc775966fd7ead.tar.gz
SERVER-38275 ban find explain with UUID
Diffstat (limited to 'src/mongo/db/commands/find_cmd.cpp')
-rw-r--r--src/mongo/db/commands/find_cmd.cpp6
1 files changed, 3 insertions, 3 deletions
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<AutoGetCollectionForReadCommand> ctx;
ctx.emplace(opCtx,
- CommandHelpers::parseNsOrUUID(_dbName, _request.body),
+ CommandHelpers::parseNsCollectionRequired(_dbName, _request.body),
AutoGetCollection::ViewMode::kViewsPermitted);
const auto nss = ctx->getNss();