• antirez's avatar
    Fix GEORADIUS edge case with huge radius. · b2cd9fca
    antirez authored
    This commit closes issue #3698, at least for now, since the root cause
    was not fixed: the bounding box function, for huge radiuses, does not
    return a correct bounding box, there are points still within the radius
    that are left outside.
    
    So when using GEORADIUS queries with radiuses in the order of 5000 km or
    more, it was possible to see, at the edge of the area, certain points
    not correctly reported.
    
    Because the bounding box for now was used just as an optimization, and
    such huge radiuses are not common, for now the optimization is just
    switched off when the radius is near such magnitude.
    
    Three test cases found by the Continuous Integration test were added, so
    that we can easily trigger the bug again, both for regression testing
    and in order to properly fix it as some point in the future.
    b2cd9fca
geohash_helper.c 9.19 KB