diff options
Diffstat (limited to 'jstests/core/covered_index_sort_3.js')
-rw-r--r-- | jstests/core/covered_index_sort_3.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/covered_index_sort_3.js b/jstests/core/covered_index_sort_3.js index 0e9b1ea30ff..1107e0584dc 100644 --- a/jstests/core/covered_index_sort_3.js +++ b/jstests/core/covered_index_sort_3.js @@ -17,7 +17,7 @@ for (i = 0; i < 100; i++) { coll.insert({a: i, b: "strvar_" + (i % 13), c: NumberInt(i % 10)}); } -coll.createIndex({a: 1, b: -1, c: 1}); +coll.ensureIndex({a: 1, b: -1, c: 1}); // Test no query, sort on all fields in index order var plan = coll.find({}, {b: 1, c: 1, _id: 0}) |