From 071065a2969176ad2aa2ac9c3210e5fa9410cea6 Mon Sep 17 00:00:00 2001 From: Max Hirschhorn Date: Wed, 7 Sep 2016 17:37:46 -0400 Subject: 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. --- jstests/core/explain_distinct.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jstests/core/explain_distinct.js') 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})); -- cgit v1.2.1