From d324cff2fccfd7f2f1397093e01a1eb4af9a3e52 Mon Sep 17 00:00:00 2001 From: Andy Schwerin Date: Tue, 4 Nov 2014 16:17:48 -0500 Subject: SERVER-15882 Get rid of ensureIndex in dbtests. --- src/mongo/dbtests/query_stage_tests.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mongo/dbtests/query_stage_tests.cpp') 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()) { -- cgit v1.2.1