summaryrefslogtreecommitdiff
path: root/jstests/perf/find1.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/perf/find1.js')
-rw-r--r--jstests/perf/find1.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/perf/find1.js b/jstests/perf/find1.js
index 31710cbfd66..6a9d3b75355 100644
--- a/jstests/perf/find1.js
+++ b/jstests/perf/find1.js
@@ -13,7 +13,7 @@ function testSetup(dbConn) {
for (var i = 0; i < size; i++) {
t.save({num: i});
if (i == 0)
- t.createIndex({num: 1});
+ t.ensureIndex({num: 1});
}
}