• Binbin's avatar
    Add tests to cover EXPIRE overflow fix (#9839) · 8fca090e
    Binbin authored
    In #8287, some overflow checks have been added. But when
    `when *= 1000` overflows, it will become a positive number.
    And the check not able to catch it. The key will be added with
    a short expiration time and will deleted a few seconds later.
    
    In #9601, will check the overflow after `*=` and return an
    error first, and avoiding this situation.
    
    In this commit, added some tests to cover those code paths.
    Found it in #9825, and close it.
    
    (cherry picked from commit 9273d09d)
    8fca090e
expire.tcl 12.8 KB