• Binbin's avatar
    Fix SPOP/RESTORE propagation when doing lazy free (#12320) · 439b0315
    Binbin authored
    In SPOP, when COUNT is greater than or equal to set's size,
    we will remove the set. In dbDelete, we will do DEL or UNLINK
    according to the lazy flag. This is also required for propagate.
    
    In RESTORE, we won't store expired keys into the db, see #7472.
    When used together with REPLACE, it should emit a DEL or UNLINK
    according to the lazy flag.
    
    This PR also adds tests to cover the propagation. The RESTORE
    test will also cover #7472.
    439b0315
t_set.c 61.8 KB