diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2016-09-07 17:37:46 -0400 |
---|---|---|
committer | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2016-09-07 17:37:46 -0400 |
commit | 071065a2969176ad2aa2ac9c3210e5fa9410cea6 (patch) | |
tree | 0e77b2ace8c9507bcd95a3b6c0dd73e347bcef1b /jstests/core/explain_distinct.js | |
parent | 5133e213c79378893f6bc7671e57789e1f6a9874 (diff) | |
download | mongo-071065a2969176ad2aa2ac9c3210e5fa9410cea6.tar.gz |
SERVER-25156 Add support for building v=2 indexes.
We use index version v=2 as the default index version when the
featureCompatibilityVersion is 3.4, and we use index version v=1 as the
default index version when the featureCompatibilityVersion is 3.2.
The "collation" index option can only be used with v=2 indexes.
Diffstat (limited to 'jstests/core/explain_distinct.js')
-rw-r--r-- | jstests/core/explain_distinct.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/explain_distinct.js b/jstests/core/explain_distinct.js index f2908caa5e7..6fd0a012205 100644 --- a/jstests/core/explain_distinct.js +++ b/jstests/core/explain_distinct.js @@ -65,7 +65,7 @@ assert.eq(false, stage.isUnique); assert.eq(false, stage.isSparse); assert.eq(false, stage.isPartial); - assert.eq(1, stage.indexVersion); + assert.lte(1, stage.indexVersion); assert("indexBounds" in stage); assert.commandWorked(coll.createIndex({a: 1, b: 1})); |