• sundb's avatar
    Delete empty key if fails after moduleCreateEmptyKey() in module (#12129) · ce5f4ea3
    sundb authored
    When `RM_ZsetAdd()`/`RM_ZsetIncrby()`/`RM_StreamAdd()` fails, if a new key happens to 
    be created using `moduleCreateEmptyKey()`, we should clean up the empty key.
    
    ## Test
    1) Add new module commands(`zset.add` and `zset.incrby`) to cover  `RM_ZsetAdd()`/`RM_ZsetIncrby()`.
    2) Add a large-memory test to cover `RM_StreamAdd()`.
    ce5f4ea3
zset.c 3.32 KB