diff options
Diffstat (limited to 'src/mongo/dbtests/matchertests.cpp')
-rw-r--r-- | src/mongo/dbtests/matchertests.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/dbtests/matchertests.cpp b/src/mongo/dbtests/matchertests.cpp index 73b5c728511..9a762f017a0 100644 --- a/src/mongo/dbtests/matchertests.cpp +++ b/src/mongo/dbtests/matchertests.cpp @@ -231,15 +231,15 @@ template <typename M> class WhereSimple1 { public: void run() { - const ServiceContext::UniqueOperationContext txnPtr = cc().makeOperationContext(); - OperationContext& txn = *txnPtr; + const ServiceContext::UniqueOperationContext opCtxPtr = cc().makeOperationContext(); + OperationContext& opCtx = *opCtxPtr; const NamespaceString nss("unittests.matchertests"); - AutoGetCollectionForRead ctx(&txn, nss); + AutoGetCollectionForRead ctx(&opCtx, nss); const CollatorInterface* collator = nullptr; M m(BSON("$where" << "function(){ return this.a == 1; }"), - ExtensionsCallbackReal(&txn, &nss), + ExtensionsCallbackReal(&opCtx, &nss), collator); ASSERT(m.matches(BSON("a" << 1))); ASSERT(!m.matches(BSON("a" << 2))); |