diff options
Diffstat (limited to 'jstests/core/explain1.js')
-rw-r--r-- | jstests/core/explain1.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/explain1.js b/jstests/core/explain1.js index 8450335159d..09891f214dd 100644 --- a/jstests/core/explain1.js +++ b/jstests/core/explain1.js @@ -19,7 +19,7 @@ assert.eq(49, t.find(q).count(), "A"); assert.eq(49, t.find(q).itcount(), "B"); assert.eq(20, t.find(q).limit(20).itcount(), "C"); -t.createIndex({x: 1}); +t.ensureIndex({x: 1}); assert.eq(49, t.find(q).count(), "D"); assert.eq(49, t.find(q).itcount(), "E"); |