diff options
Diffstat (limited to 'src/mongo/dbtests/query_stage_count_scan.cpp')
-rw-r--r-- | src/mongo/dbtests/query_stage_count_scan.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/dbtests/query_stage_count_scan.cpp b/src/mongo/dbtests/query_stage_count_scan.cpp index 53390fca861..913baf62ba9 100644 --- a/src/mongo/dbtests/query_stage_count_scan.cpp +++ b/src/mongo/dbtests/query_stage_count_scan.cpp @@ -90,8 +90,8 @@ public: } const IndexDescriptor* getIndex(Database* db, const BSONObj& obj) { - Collection* collection = - CollectionCatalog::get(&_opCtx).lookupCollectionByNamespace(NamespaceString(ns())); + Collection* collection = CollectionCatalog::get(&_opCtx).lookupCollectionByNamespace( + &_opCtx, NamespaceString(ns())); std::vector<const IndexDescriptor*> indexes; collection->getIndexCatalog()->findIndexesByKeyPattern(&_opCtx, obj, false, &indexes); return indexes.empty() ? nullptr : indexes[0]; |