summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/create_collection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/create_collection.cpp')
-rw-r--r--src/mongo/db/catalog/create_collection.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/create_collection.cpp b/src/mongo/db/catalog/create_collection.cpp
index f157f2e62c6..3fe61d50d3f 100644
--- a/src/mongo/db/catalog/create_collection.cpp
+++ b/src/mongo/db/catalog/create_collection.cpp
@@ -416,7 +416,11 @@ Status _createTimeseries(OperationContext* opCtx,
return ret;
ret = writeConflictRetry(opCtx, "create", ns.ns(), [&]() -> Status {
- AutoGetCollection autoColl(opCtx, ns, MODE_IX, AutoGetCollectionViewMode::kViewsPermitted);
+ AutoGetCollection autoColl(
+ opCtx,
+ ns,
+ MODE_IX,
+ AutoGetCollection::Options{}.viewMode(auto_get_collection::ViewMode::kViewsPermitted));
Lock::CollectionLock systemDotViewsLock(
opCtx,
NamespaceString(ns.db(), NamespaceString::kSystemDotViewsCollectionName),