summaryrefslogtreecommitdiff
path: root/jstests/core/update5.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/update5.js')
-rw-r--r--jstests/core/update5.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/update5.js b/jstests/core/update5.js
index 7f41096889c..fafc0d72ce0 100644
--- a/jstests/core/update5.js
+++ b/jstests/core/update5.js
@@ -26,7 +26,7 @@ function go(key) {
var ik = {};
for (k in key)
ik[k] = 1;
- t.ensureIndex(ik);
+ t.createIndex(ik);
t.update(key, {$inc: {n: 1}}, true);
check(4, "D");