diff options
author | Benety Goh <benety@mongodb.com> | 2018-12-27 12:15:59 -0500 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2018-12-27 12:16:08 -0500 |
commit | 9da0e261619a4211a3ddee8c72ed2657c4c0d284 (patch) | |
tree | f71a3f5fcedeed092d57943587042888a3c8eb59 | |
parent | e9ab3a4f84e51e30e95c8e0c8f9ae46237e1a926 (diff) | |
download | mongo-9da0e261619a4211a3ddee8c72ed2657c4c0d284.tar.gz |
SERVER-25936 remove deleteIndexes references from tests
-rw-r--r-- | jstests/core/drop.js | 3 | ||||
-rw-r--r-- | src/mongo/db/repl/idempotency_test_fixture.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/jstests/core/drop.js b/jstests/core/drop.js index 789c87bf227..ea395660a5f 100644 --- a/jstests/core/drop.js +++ b/jstests/core/drop.js @@ -19,8 +19,7 @@ assert.eq(0, coll.getIndexes().length, "D"); coll.ensureIndex({a: 1}); assert.eq(2, coll.getIndexes().length, "E"); -assert.commandWorked(db.runCommand({deleteIndexes: coll.getName(), index: "*"}), - "delete indexes A"); +assert.commandWorked(db.runCommand({dropIndexes: coll.getName(), index: "*"}), "drop indexes A"); assert.eq(1, coll.getIndexes().length, "G"); // make sure we can still use it diff --git a/src/mongo/db/repl/idempotency_test_fixture.cpp b/src/mongo/db/repl/idempotency_test_fixture.cpp index 48e3d97f5c6..617252d0418 100644 --- a/src/mongo/db/repl/idempotency_test_fixture.cpp +++ b/src/mongo/db/repl/idempotency_test_fixture.cpp @@ -398,7 +398,7 @@ OplogEntry IdempotencyTest::buildIndex(const BSONObj& indexSpec, } OplogEntry IdempotencyTest::dropIndex(const std::string& indexName) { - auto cmd = BSON("deleteIndexes" << nss.coll() << "index" << indexName); + auto cmd = BSON("dropIndexes" << nss.coll() << "index" << indexName); return makeCommandOplogEntry(nextOpTime(), nss, cmd); } |