diff options
Diffstat (limited to 'jstests/core/covered_index_simple_2.js')
-rw-r--r-- | jstests/core/covered_index_simple_2.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/covered_index_simple_2.js b/jstests/core/covered_index_simple_2.js index 67548ed8c06..066bf1bae4c 100644 --- a/jstests/core/covered_index_simple_2.js +++ b/jstests/core/covered_index_simple_2.js @@ -19,7 +19,7 @@ for (i = 0; i < 10; i++) { coll.insert({foo: "string"}); coll.insert({foo: {bar: 1}}); coll.insert({foo: null}); -coll.ensureIndex({foo: 1}, {unique: true}); +coll.createIndex({foo: 1}, {unique: true}); // Test equality with int value var plan = coll.find({foo: 1}, {foo: 1, _id: 0}).hint({foo: 1}).explain("executionStats"); |