summaryrefslogtreecommitdiff
path: root/jstests/sharding/geo_shardedgeonear.js
diff options
context:
space:
mode:
authorHari Khalsa <hkhalsa@10gen.com>2013-01-14 19:26:26 -0500
committerHari Khalsa <hkhalsa@10gen.com>2013-01-14 19:26:31 -0500
commita4b1b4568d0283a6c526f922690f0eb2d6de00f2 (patch)
tree22ca46c0bce074dd948309fddc596eacceb26a33 /jstests/sharding/geo_shardedgeonear.js
parent4831624324fdc883e0f4c4ba842ca87c3e2fbbcb (diff)
downloadmongo-a4b1b4568d0283a6c526f922690f0eb2d6de00f2.tar.gz
2dsphere geonear requires spherical: true
Diffstat (limited to 'jstests/sharding/geo_shardedgeonear.js')
-rw-r--r--jstests/sharding/geo_shardedgeonear.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/geo_shardedgeonear.js b/jstests/sharding/geo_shardedgeonear.js
index 6bb7f5ae8fa..16f17a2f73e 100644
--- a/jstests/sharding/geo_shardedgeonear.js
+++ b/jstests/sharding/geo_shardedgeonear.js
@@ -34,7 +34,7 @@ function test(db, sharded, indexType) {
db[coll].ensureIndex({loc: indexType})
var queryPoint = [0,0]
- geoCmd = {geoNear: coll, near: queryPoint, includeLocs: true};
+ geoCmd = {geoNear: coll, near: queryPoint, spherical: true, includeLocs: true};
assert.commandWorked(db.runCommand(geoCmd), tojson({sharded: sharded, indexType: indexType}));
}