diff options
-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; } } |