diff options
author | Rishab Joshi <rishab.joshi@mongodb.com> | 2020-11-10 13:42:25 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-12 10:38:50 +0000 |
commit | e69c967ff8b53634770438dfe9a5c7d13548351b (patch) | |
tree | cf8f6b10b2374f388d51213d172f28b4fd3d05e8 /jstests/parallel | |
parent | 916c466afac10d34e61b6ca42a12e35d7c4828f1 (diff) | |
download | mongo-e69c967ff8b53634770438dfe9a5c7d13548351b.tar.gz |
SERVER-50442 Remove ensureIndex shell function This commit also replaces all the usages of ensureIndex() with createIndex() in JS tests and JS shell
Diffstat (limited to 'jstests/parallel')
-rw-r--r-- | jstests/parallel/insert.js | 2 | ||||
-rw-r--r-- | jstests/parallel/manyclients.js | 2 | ||||
-rw-r--r-- | jstests/parallel/update_serializability1.js | 4 | ||||
-rw-r--r-- | jstests/parallel/update_serializability2.js | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/jstests/parallel/insert.js b/jstests/parallel/insert.js index e2dee8053d9..d28eb89e220 100644 --- a/jstests/parallel/insert.js +++ b/jstests/parallel/insert.js @@ -3,7 +3,7 @@ load('jstests/libs/parallelTester.js'); f = db.jstests_parallel_insert; f.drop(); -f.ensureIndex({who: 1}); +f.createIndex({who: 1}); Random.setRandomSeed(); diff --git a/jstests/parallel/manyclients.js b/jstests/parallel/manyclients.js index ca31f333635..fc6dce056a8 100644 --- a/jstests/parallel/manyclients.js +++ b/jstests/parallel/manyclients.js @@ -3,7 +3,7 @@ load('jstests/libs/parallelTester.js'); f = db.jstests_parallel_manyclients; f.drop(); -f.ensureIndex({who: 1}); +f.createIndex({who: 1}); Random.setRandomSeed(); diff --git a/jstests/parallel/update_serializability1.js b/jstests/parallel/update_serializability1.js index 6fc41204c3c..e57b51ae721 100644 --- a/jstests/parallel/update_serializability1.js +++ b/jstests/parallel/update_serializability1.js @@ -10,8 +10,8 @@ for (var i = 0; i < N; i++) { } bulk.execute(); -t.ensureIndex({a: 1}); -t.ensureIndex({b: 1}); +t.createIndex({a: 1}); +t.createIndex({b: 1}); s1 = startParallelShell("db.update_serializability1.update( { a : { $gte : 0 } }, { $set : { b : " + (N + 1) + ", x : 2 } }, false, true );"); diff --git a/jstests/parallel/update_serializability2.js b/jstests/parallel/update_serializability2.js index 84b27049e53..16fd4ad3394 100644 --- a/jstests/parallel/update_serializability2.js +++ b/jstests/parallel/update_serializability2.js @@ -11,8 +11,8 @@ for (var i = 0; i < N; i++) { } bulk.execute(); -t.ensureIndex({a: 1}); -t.ensureIndex({b: 1}); +t.createIndex({a: 1}); +t.createIndex({b: 1}); var s1 = startParallelShell( "db.update_serializability1.update( { a : { $gte : 0 } }, { $set : { x : 2 } }, false, true );"); |