• antirez's avatar
    MOVE now can move TTL metadata as well. · f529a01c
    antirez authored
    MOVE was not able to move the TTL: when a key was moved into a different
    database number, it became persistent like if PERSIST was used.
    
    In some incredible way (I guess almost nobody uses Redis MOVE) this bug
    remained unnoticed inside Redis internals for many years.
    Finally Andy Grunwald discovered it and opened an issue.
    
    This commit fixes the bug and adds a regression test.
    
    Close #2765.
    f529a01c
db.c 39.9 KB