diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-03-24 19:51:43 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-03-24 19:51:43 -0400 |
commit | a46c77023b22eb551f4e4182055591198b91be5f (patch) | |
tree | b1f5aef7e3e7b8512fddc95170faa63cba5f5402 | |
parent | 0da2c646ab4e60126fd67bf3f5984f7f8bea335b (diff) | |
download | mongo-a46c77023b22eb551f4e4182055591198b91be5f.tar.gz |
variable fudge for double issues
-rw-r--r-- | db/index_geo2d.cpp | 9 |
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(); } |