• Binbin's avatar
    Fix command line startup --sentinel problem (#11591) · b322a77e
    Binbin authored
    There is a issue with --sentinel:
    ```
    [root]# src/redis-server sentinel.conf --sentinel --loglevel verbose
    
    *** FATAL CONFIG FILE ERROR (Redis 255.255.255) ***
    Reading the configuration file, at line 352
    >>> 'sentinel "--loglevel" "verbose"'
    Unrecognized sentinel configuration statement
    ```
    
    This is because in #10660 (Redis 7.0.1), `--` prefix change break it.
    In this PR, we will handle `--sentinel` the same as we did for `--save`
    in #10866. i.e. it's a pseudo config option with no value.
    
    (cherry picked from commit 8f13ac10)
    b322a77e
server.c 273 KB