diff options
author | Evgeni Dobranov <evgeni.dobranov@mongodb.com> | 2019-09-30 20:02:19 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-09-30 20:02:19 +0000 |
commit | 344e1b0f3ce5caf0d4760dddc8b2d196d4b73fe8 (patch) | |
tree | 14567c05e50661f6fb3b983a2b19a26abfe4a22c /src/mongo/db/catalog_raii.cpp | |
parent | 25b63d9ff12ebdfde549288ebaa7ff27c6945dd7 (diff) | |
download | mongo-344e1b0f3ce5caf0d4760dddc8b2d196d4b73fe8.tar.gz |
SERVER-41496 Remove Database::getCollection() and replace with CollectionCatalog::get().lookupCollectionByNamespace()
Diffstat (limited to 'src/mongo/db/catalog_raii.cpp')
-rw-r--r-- | src/mongo/db/catalog_raii.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/catalog_raii.cpp b/src/mongo/db/catalog_raii.cpp index ce29a2c495b..254694ec1cc 100644 --- a/src/mongo/db/catalog_raii.cpp +++ b/src/mongo/db/catalog_raii.cpp @@ -95,7 +95,7 @@ AutoGetCollection::AutoGetCollection(OperationContext* opCtx, if (!db) return; - _coll = db->getCollection(opCtx, _resolvedNss); + _coll = CollectionCatalog::get(opCtx).lookupCollectionByNamespace(_resolvedNss); invariant(!nsOrUUID.uuid() || _coll, str::stream() << "Collection for " << _resolvedNss.ns() << " disappeared after successufully resolving " |