diff options
Diffstat (limited to 'src/mongo/db/views/view_catalog_helpers.cpp')
-rw-r--r-- | src/mongo/db/views/view_catalog_helpers.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/views/view_catalog_helpers.cpp b/src/mongo/db/views/view_catalog_helpers.cpp index a253f16adc3..018fad8437d 100644 --- a/src/mongo/db/views/view_catalog_helpers.cpp +++ b/src/mongo/db/views/view_catalog_helpers.cpp @@ -185,9 +185,7 @@ StatusWith<ResolvedView> resolveView(OperationContext* opCtx, } if (view->timeseries()) { - // Use the lock-free collection lookup, to ensure compatibility with lock-free read - // operations. - auto tsCollection = catalog->lookupCollectionByNamespaceForRead(opCtx, *resolvedNss); + auto tsCollection = catalog->lookupCollectionByNamespace(opCtx, *resolvedNss); uassert(6067201, str::stream() << "expected time-series buckets collection " << *resolvedNss << " to exist", |