Fix warning in redis.c for sentinel config load #603

merged 1 commit into from Jul 25, 2012

2 participants


Currently if you load redis-sentinel without a config file, it tells you to use redis-server instead. This fixes the warning.

Took a suggestion from @pietern to use argv[0] - this was initially to avoid checking redis.sentinel_mode, but I like this compromise because it provides both the exact string used to start the binary + the right name of the conf file.


@antirez Updated with your suggestion

@antirez antirez merged commit 42c5718 into antirez:unstable Jul 25, 2012

Thank you, merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment