diff options
Diffstat (limited to 'jstests/noPassthrough/index_partial_no_explain_cmds.js')
-rw-r--r-- | jstests/noPassthrough/index_partial_no_explain_cmds.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthrough/index_partial_no_explain_cmds.js b/jstests/noPassthrough/index_partial_no_explain_cmds.js index 2ad426d9d23..122ae1fade8 100644 --- a/jstests/noPassthrough/index_partial_no_explain_cmds.js +++ b/jstests/noPassthrough/index_partial_no_explain_cmds.js @@ -11,7 +11,7 @@ var ret; coll.drop(); db.getCollection("mrOutput").drop(); -assert.commandWorked(coll.ensureIndex({x: 1}, {partialFilterExpression: {a: 1}})); +assert.commandWorked(coll.createIndex({x: 1}, {partialFilterExpression: {a: 1}})); assert.commandWorked(coll.insert({_id: 1, x: 5, a: 2})); // Not in index. assert.commandWorked(coll.insert({_id: 2, x: 6, a: 1})); // In index. |