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