• gms's avatar
    Fix SENTINEL DEBUG with wrong arguments (#10258) · 0990dec3
    gms authored
    There are two issues in SENTINEL DEBUG:
    1. The error message should mention SENTINEL DEBUG
    2. Add missing reuturn in args parse.
    
    ```
    redis> sentinel debug INFO-PERIOD aaa
    (error) ERR Invalid argument 'aaa' for SENTINEL SET 'INFO-PERIOD'
    
    redis> sentinel debug a b c d
    (error) ERR Unknown option or number of arguments for SENTINEL SET 'a'
    redis> ping
    (error) ERR Unknown option or number of arguments for SENTINEL SET 'b'
    ```
    
    Introduced in #9291. Also do some cleanups in the code.
    0990dec3
sentinel.c 207 KB