diff options
Diffstat (limited to 'src/mongo/db/catalog/catalog_control.cpp')
-rw-r--r-- | src/mongo/db/catalog/catalog_control.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/catalog_control.cpp b/src/mongo/db/catalog/catalog_control.cpp index 4d433798cb1..e12b489f558 100644 --- a/src/mongo/db/catalog/catalog_control.cpp +++ b/src/mongo/db/catalog/catalog_control.cpp @@ -190,7 +190,8 @@ void openCatalog(OperationContext* opCtx, const MinVisibleTimestampMap& minVisib CollectionCatalog::get(opCtx).getAllCollectionNamesFromDb(opCtx, dbName)) { // Note that the collection name already includes the database component. auto collection = - CollectionCatalog::get(opCtx).lookupCollectionByNamespace(opCtx, collNss); + CollectionCatalog::get(opCtx).lookupCollectionByNamespaceForMetadataWrite(opCtx, + collNss); invariant(collection, str::stream() << "failed to get valid collection pointer for namespace " << collNss); |