diff options
author | Cheahuychou Mao <cheahuychou.mao@mongodb.com> | 2018-06-18 09:45:04 -0400 |
---|---|---|
committer | Cheahuychou Mao <cheahuychou.mao@mongodb.com> | 2018-06-28 14:10:40 -0400 |
commit | 3e632d5ed0dbae8119a48b4ca2a1f9d22f197b18 (patch) | |
tree | c79c48fbf93683294d8157d87d1bb4feaaa6a945 /jstests/core/collation.js | |
parent | c9caa6bc43a54a7f88a3c78056f056f289e9ed30 (diff) | |
download | mongo-3e632d5ed0dbae8119a48b4ca2a1f9d22f197b18.tar.gz |
SERVER-35580 Remove ReIndexCmd from mongos
Diffstat (limited to 'jstests/core/collation.js')
-rw-r--r-- | jstests/core/collation.js | 56 |
1 files changed, 29 insertions, 27 deletions
diff --git a/jstests/core/collation.js b/jstests/core/collation.js index 44eea63d21c..d6857527bdf 100644 --- a/jstests/core/collation.js +++ b/jstests/core/collation.js @@ -133,33 +133,35 @@ assertIndexHasCollation({c: 1}, {locale: "simple"}); // Test that all indexes retain their current collation when the collection is re-indexed. - assert.commandWorked(coll.reIndex()); - assertIndexHasCollation({a: 1}, { - locale: "fr_CA", - caseLevel: false, - caseFirst: "off", - strength: 3, - numericOrdering: false, - alternate: "non-ignorable", - maxVariable: "punct", - normalization: false, - backwards: true, - version: "57.1", - }); - assertIndexHasCollation({b: 1}, { - locale: "en_US", - caseLevel: false, - caseFirst: "off", - strength: 3, - numericOrdering: false, - alternate: "non-ignorable", - maxVariable: "punct", - normalization: false, - backwards: false, - version: "57.1", - }); - assertIndexHasCollation({d: 1}, {locale: "simple"}); - assertIndexHasCollation({c: 1}, {locale: "simple"}); + if (!isMongos) { + assert.commandWorked(coll.reIndex()); + assertIndexHasCollation({a: 1}, { + locale: "fr_CA", + caseLevel: false, + caseFirst: "off", + strength: 3, + numericOrdering: false, + alternate: "non-ignorable", + maxVariable: "punct", + normalization: false, + backwards: true, + version: "57.1", + }); + assertIndexHasCollation({b: 1}, { + locale: "en_US", + caseLevel: false, + caseFirst: "off", + strength: 3, + numericOrdering: false, + alternate: "non-ignorable", + maxVariable: "punct", + normalization: false, + backwards: false, + version: "57.1", + }); + assertIndexHasCollation({d: 1}, {locale: "simple"}); + assertIndexHasCollation({c: 1}, {locale: "simple"}); + } coll.drop(); |