diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-04-21 12:54:37 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-04-21 12:55:29 -0400 |
commit | 351b01e2a992e99792aeee009511caaa6ab38fa1 (patch) | |
tree | 0c9eec2663fbb0574b548401c664033db963d4e3 /db | |
parent | a0e88a89ead7ecd5c5928f1a2a674c6ae5b62f43 (diff) | |
download | mongo-351b01e2a992e99792aeee009511caaa6ab38fa1.tar.gz |
slight tweak to maxDistance SERVER-1027
Diffstat (limited to 'db')
-rw-r--r-- | db/index_geo2d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/index_geo2d.cpp b/db/index_geo2d.cpp index 7df7bb60f86..5ebf65a5574 100644 --- a/db/index_geo2d.cpp +++ b/db/index_geo2d.cpp @@ -1045,7 +1045,7 @@ namespace mongo { _prefix = _prefix.up(); double temp = _spec->distance( _prefix , _start ); - if ( ( temp * 5 ) > _maxDistance ) + if ( temp > ( _maxDistance * 2 ) ) break; } } |