diff options
Diffstat (limited to 'jstests/core/geod.js')
-rw-r--r-- | jstests/core/geod.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/geod.js b/jstests/core/geod.js index fc6c37f1da3..47b067809f8 100644 --- a/jstests/core/geod.js +++ b/jstests/core/geod.js @@ -2,7 +2,7 @@ var t = db.geod; t.drop(); t.save({loc: [0, 0]}); t.save({loc: [0.5, 0]}); -t.ensureIndex({loc: "2d"}); +t.createIndex({loc: "2d"}); // do a few geoNears with different maxDistances. The first iteration // should match no points in the dataset. // @tags: [ |