summaryrefslogtreecommitdiff
path: root/jstests/core/exists3.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/exists3.js')
-rw-r--r--jstests/core/exists3.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/exists3.js b/jstests/core/exists3.js
index e4ce03437bb..510d63c3752 100644
--- a/jstests/core/exists3.js
+++ b/jstests/core/exists3.js
@@ -11,7 +11,7 @@ assert.eq(1, t.find({c: {$exists: false}}).itcount());
assert.eq(1, t.find({c: {$exists: false}}).sort({c: -1}).itcount());
// now we have an index on the sort key
-t.ensureIndex({c: -1});
+t.createIndex({c: -1});
assert.eq(1, t.find({c: {$exists: false}}).sort({c: -1}).itcount());
assert.eq(1, t.find({c: {$exists: false}}).itcount());