diff options
Diffstat (limited to 'jstests/core/find_dedup.js')
-rw-r--r-- | jstests/core/find_dedup.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/find_dedup.js b/jstests/core/find_dedup.js index 8c0f416efb1..8c628b66734 100644 --- a/jstests/core/find_dedup.js +++ b/jstests/core/find_dedup.js @@ -22,7 +22,7 @@ function checkDedup(query, idArray) { // Deduping $or coll.drop(); -coll.createIndex({a: 1, b: 1}); +coll.ensureIndex({a: 1, b: 1}); assert.commandWorked(coll.insert({_id: 1, a: 1, b: 1})); assert.commandWorked(coll.insert({_id: 2, a: 1, b: 1})); assert.commandWorked(coll.insert({_id: 3, a: 2, b: 2})); |