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 cee3995395c..efe21b9cb88 100644
--- a/src/mongo/dbtests/matchertests.cpp
+++ b/src/mongo/dbtests/matchertests.cpp
@@ -222,7 +222,7 @@ namespace MatcherTests {
Client::ReadContext ctx(&txn, "unittests.matchertests");
M m(BSON("$where" << "function(){ return this.a == 1; }"),
- WhereCallbackReal(StringData("unittests")));
+ WhereCallbackReal(&txn, StringData("unittests")));
ASSERT( m.matches( BSON( "a" << 1 ) ) );
ASSERT( !m.matches( BSON( "a" << 2 ) ) );
}