summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/distinct.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/distinct.cpp')
-rw-r--r--src/mongo/db/commands/distinct.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/distinct.cpp b/src/mongo/db/commands/distinct.cpp
index 542f4e773b6..1895281af59 100644
--- a/src/mongo/db/commands/distinct.cpp
+++ b/src/mongo/db/commands/distinct.cpp
@@ -154,7 +154,7 @@ public:
boost::optional<AutoGetCollectionForReadCommandMaybeLockFree> ctx;
ctx.emplace(opCtx,
CommandHelpers::parseNsCollectionRequired(dbName, cmdObj),
- AutoGetCollectionViewMode::kViewsPermitted);
+ auto_get_collection::ViewMode::kViewsPermitted);
const auto nss = ctx->getNss();
const ExtensionsCallbackReal extensionsCallback(opCtx, &nss);
@@ -208,7 +208,7 @@ public:
boost::optional<AutoGetCollectionForReadCommandMaybeLockFree> ctx;
ctx.emplace(opCtx,
CommandHelpers::parseNsOrUUID(dbName, cmdObj),
- AutoGetCollectionViewMode::kViewsPermitted);
+ auto_get_collection::ViewMode::kViewsPermitted);
const auto& nss = ctx->getNss();
if (!ctx->getView()) {