summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/matchertests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/matchertests.cpp')
-rw-r--r--src/mongo/dbtests/matchertests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/dbtests/matchertests.cpp b/src/mongo/dbtests/matchertests.cpp
index e4e1bc91316..591afcfd383 100644
--- a/src/mongo/dbtests/matchertests.cpp
+++ b/src/mongo/dbtests/matchertests.cpp
@@ -207,7 +207,7 @@ namespace MatcherTests {
public:
void run() {
OperationContextImpl txn;
- Client::ReadContext ctx(&txn, "unittests.matchertests");
+ AutoGetCollectionForRead ctx(&txn, "unittests.matchertests");
M m(BSON("$where" << "function(){ return this.a == 1; }"),
WhereCallbackReal(&txn, StringData("unittests")));