summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/executor_registry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/executor_registry.cpp')
-rw-r--r--src/mongo/dbtests/executor_registry.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/dbtests/executor_registry.cpp b/src/mongo/dbtests/executor_registry.cpp
index 5efaf842934..50319bbaf8a 100644
--- a/src/mongo/dbtests/executor_registry.cpp
+++ b/src/mongo/dbtests/executor_registry.cpp
@@ -214,7 +214,7 @@ namespace ExecutorRegistry {
auto_ptr<PlanExecutor> run(getCollscan());
BSONObj obj;
- _client.ensureIndex(ns(), BSON("foo" << 1));
+ ASSERT_OK(dbtests::createIndex(&_opCtx, ns(), BSON("foo" << 1)));
// Read some of it.
for (int i = 0; i < 10; ++i) {
@@ -245,7 +245,7 @@ namespace ExecutorRegistry {
auto_ptr<PlanExecutor> run(getCollscan());
BSONObj obj;
- _client.ensureIndex(ns(), BSON("foo" << 1));
+ ASSERT_OK(dbtests::createIndex(&_opCtx, ns(), BSON("foo" << 1)));
// Read some of it.
for (int i = 0; i < 10; ++i) {