summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-03-24 19:51:43 -0400
committerEliot Horowitz <eliot@10gen.com>2010-03-24 19:51:43 -0400
commita46c77023b22eb551f4e4182055591198b91be5f (patch)
treeb1f5aef7e3e7b8512fddc95170faa63cba5f5402
parent0da2c646ab4e60126fd67bf3f5984f7f8bea335b (diff)
downloadmongo-a46c77023b22eb551f4e4182055591198b91be5f.tar.gz
variable fudge for double issues
-rw-r--r--db/index_geo2d.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/db/index_geo2d.cpp b/db/index_geo2d.cpp
index 25d1aa91ec3..2006fcea50b 100644
--- a/db/index_geo2d.cpp
+++ b/db/index_geo2d.cpp
@@ -1366,8 +1366,13 @@ namespace mongo {
GEODEBUG( "center : " << center.toString() << "\t" << _prefix );
- _fudge = 0.01;
-
+ {
+ GeoHash a(0LL,32);
+ GeoHash b(0LL,32);
+ b.move(1,1);
+ _fudge = _g->distance(a,b);
+ }
+
ok();
}