summaryrefslogtreecommitdiff
path: root/jstests/core/geo_circle3.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/geo_circle3.js')
-rw-r--r--jstests/core/geo_circle3.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/geo_circle3.js b/jstests/core/geo_circle3.js
index 3be564cd180..e931e96783d 100644
--- a/jstests/core/geo_circle3.js
+++ b/jstests/core/geo_circle3.js
@@ -14,7 +14,7 @@ db.places.save({"_id": n++, "loc": {"x": 4.9999, "y": 52.0001}});
db.places.save({"_id": n++, "loc": {"x": 5.0001, "y": 52.0001}});
db.places.save({"_id": n++, "loc": {"x": 4.9999, "y": 51.9999}});
db.places.save({"_id": n++, "loc": {"x": 5.0001, "y": 51.9999}});
-db.places.ensureIndex({loc: "2d"});
+db.places.createIndex({loc: "2d"});
radius = 0.0001;
center = [5, 52];
// print(db.places.find({"loc" : {"$within" : {"$center" : [center, radius]}}}).count())