diff options
Diffstat (limited to 'src/mongo/db/commands/distinct.cpp')
-rw-r--r-- | src/mongo/db/commands/distinct.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/commands/distinct.cpp b/src/mongo/db/commands/distinct.cpp index 90c98b5f70f..3535120348b 100644 --- a/src/mongo/db/commands/distinct.cpp +++ b/src/mongo/db/commands/distinct.cpp @@ -117,11 +117,11 @@ public: BSONObjBuilder* out) const override { std::string dbname = request.getDatabase().toString(); const BSONObj& cmdObj = request.body; - // 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, cmdObj), + CommandHelpers::parseNsCollectionRequired(dbname, cmdObj), AutoGetCollection::ViewMode::kViewsPermitted); const auto nss = ctx->getNss(); |