diff options
author | Cheahuychou Mao <cheahuychou.mao@mongodb.com> | 2020-03-23 16:08:10 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-24 19:10:40 +0000 |
commit | 52aa42a9f55b4d852d16cd1a53a1fdafda754129 (patch) | |
tree | 2ffc2bc70f8a6f42a26a4cad40511b3285ccb4a4 /jstests/sharding/create_idx_empty_primary.js | |
parent | 2e9edb0ffaeb66ef09969814180bb748e8d5082d (diff) | |
download | mongo-52aa42a9f55b4d852d16cd1a53a1fdafda754129.tar.gz |
SERVER-45017 Remove index commands upgrade/downgrade code when 4.4 becomes last stable
Diffstat (limited to 'jstests/sharding/create_idx_empty_primary.js')
-rw-r--r-- | jstests/sharding/create_idx_empty_primary.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/jstests/sharding/create_idx_empty_primary.js b/jstests/sharding/create_idx_empty_primary.js index 9b11df9f70e..ff89347f8e3 100644 --- a/jstests/sharding/create_idx_empty_primary.js +++ b/jstests/sharding/create_idx_empty_primary.js @@ -2,8 +2,6 @@ * Test to make sure that the createIndex command gets sent to all shards if the mongos * version is last-stable, and to shards that own chunks only if the mongos version is * latest. - * - * @tags: [need_fixing_for_46] */ (function() { 'use strict'; @@ -24,9 +22,6 @@ assert.commandWorked(testDB.user.insert({_id: 0})); var res = testDB.user.ensureIndex({i: 1}); assert.commandWorked(res); -// TODO (SERVER-45017): Remove this check when v4.4 becomes last-stable. -const isLastStableMongos = (jsTestOptions().mongosBinVersion === "last-stable"); - var indexes = testDB.user.getIndexes(); assert.eq(2, indexes.length); @@ -34,7 +29,7 @@ indexes = st.rs0.getPrimary().getDB('test').user.getIndexes(); assert.eq(2, indexes.length); indexes = st.rs1.getPrimary().getDB('test').user.getIndexes(); -assert.eq(isLastStableMongos ? 2 : 1, indexes.length); +assert.eq(1, indexes.length); st.stop(); })(); |