summaryrefslogtreecommitdiff
path: root/jstests/core/index_many.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/index_many.js')
-rw-r--r--jstests/core/index_many.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/index_many.js b/jstests/core/index_many.js
index f95d4ac50de..cdd559c9be5 100644
--- a/jstests/core/index_many.js
+++ b/jstests/core/index_many.js
@@ -22,7 +22,7 @@ function f() {
patt = {x: 1};
if (x == 64)
patt = {y: 1};
- lastErr = t.ensureIndex(patt);
+ lastErr = t.createIndex(patt);
x++;
}