diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2014-11-04 16:17:48 -0500 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2014-11-05 15:38:53 -0500 |
commit | d324cff2fccfd7f2f1397093e01a1eb4af9a3e52 (patch) | |
tree | 6b789f95a95ba33d6889c9ba898b77c03508ea8c /src/mongo/dbtests/query_stage_tests.cpp | |
parent | ca0d6d5d907ebe39437b4032ccb4795946573183 (diff) | |
download | mongo-d324cff2fccfd7f2f1397093e01a1eb4af9a3e52.tar.gz |
SERVER-15882 Get rid of ensureIndex in dbtests.
Diffstat (limited to 'src/mongo/dbtests/query_stage_tests.cpp')
-rw-r--r-- | src/mongo/dbtests/query_stage_tests.cpp | 3 |
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()) { |