summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/query_plan_executor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/query_plan_executor.cpp')
-rw-r--r--src/mongo/dbtests/query_plan_executor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/dbtests/query_plan_executor.cpp b/src/mongo/dbtests/query_plan_executor.cpp
index edb5653d33b..79f63a4a842 100644
--- a/src/mongo/dbtests/query_plan_executor.cpp
+++ b/src/mongo/dbtests/query_plan_executor.cpp
@@ -57,7 +57,7 @@ namespace QueryPlanExecutor {
}
void addIndex(const BSONObj& obj) {
- _client.ensureIndex(ns(), obj);
+ ASSERT_OK(dbtests::createIndex(&_txn, ns(), obj));
}
void insert(const BSONObj& obj) {