summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/dbtests.h
diff options
context:
space:
mode:
authorEvgeni Dobranov <evgeni.dobranov@mongodb.com>2019-09-30 20:02:19 +0000
committerevergreen <evergreen@mongodb.com>2019-09-30 20:02:19 +0000
commit344e1b0f3ce5caf0d4760dddc8b2d196d4b73fe8 (patch)
tree14567c05e50661f6fb3b983a2b19a26abfe4a22c /src/mongo/dbtests/dbtests.h
parent25b63d9ff12ebdfde549288ebaa7ff27c6945dd7 (diff)
downloadmongo-344e1b0f3ce5caf0d4760dddc8b2d196d4b73fe8.tar.gz
SERVER-41496 Remove Database::getCollection() and replace with CollectionCatalog::get().lookupCollectionByNamespace()
Diffstat (limited to 'src/mongo/dbtests/dbtests.h')
-rw-r--r--src/mongo/dbtests/dbtests.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/dbtests/dbtests.h b/src/mongo/dbtests/dbtests.h
index e64772a11b7..f0b0166aecb 100644
--- a/src/mongo/dbtests/dbtests.h
+++ b/src/mongo/dbtests/dbtests.h
@@ -80,7 +80,7 @@ public:
}
Collection* getCollection() const {
- return db()->getCollection(_opCtx, _nss);
+ return CollectionCatalog::get(_opCtx).lookupCollectionByNamespace(_nss);
}
private: