• antirez's avatar
    activeExpireCycle(): fix about fast cycle early start. · 31d0f341
    antirez authored
    We don't want to repeat a fast cycle too soon, the previous code was
    broken, we need to wait two times the period *since* the start of the
    previous cycle in order to avoid there is an even space between cycles:
    
    .-> start                   .-> second start
    |                           |
    +-------------+-------------+--------------+
    | first cycle |    pause    | second cycle |
    +-------------+-------------+--------------+
    
    The second and first start must be PERIOD*2 useconds apart hence the *2
    in the new code.
    31d0f341
redis.c 113 KB