summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/query_stage_tests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/query_stage_tests.cpp')
-rw-r--r--src/mongo/dbtests/query_stage_tests.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/dbtests/query_stage_tests.cpp b/src/mongo/dbtests/query_stage_tests.cpp
index 4b1ef66dd50..bc87aaef668 100644
--- a/src/mongo/dbtests/query_stage_tests.cpp
+++ b/src/mongo/dbtests/query_stage_tests.cpp
@@ -67,8 +67,7 @@ namespace QueryStageTests {
}
void addIndex(const BSONObj& obj) {
- Client::WriteContext ctx(&_txn, ns());
- _client.ensureIndex(ns(), obj);
+ ASSERT_OK(dbtests::createIndex(&_txn, ns(), obj));
}
int countResults(const IndexScanParams& params, BSONObj filterObj = BSONObj()) {