From 8ca008692f51f416002dc6a56b64c11f43c75021 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 19 Nov 2013 11:03:47 +0100 Subject: [PATCH] Sentinel: arity of known-sentinel/slave is 4 not 3. --- src/sentinel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sentinel.c b/src/sentinel.c index 340dd6465..dd2b681f0 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -1309,7 +1309,7 @@ char *sentinelHandleConfiguration(char **argv, int argc) { ri->config_epoch = strtoull(argv[2],NULL,10); if (ri->config_epoch > sentinel.current_epoch) sentinel.current_epoch = ri->config_epoch; - } else if (!strcasecmp(argv[0],"known-slave") && argc == 3) { + } else if (!strcasecmp(argv[0],"known-slave") && argc == 4) { sentinelRedisInstance *slave; /* known-slave */ @@ -1320,7 +1320,7 @@ char *sentinelHandleConfiguration(char **argv, int argc) { { return "Wrong hostname or port for slave."; } - } else if (!strcasecmp(argv[0],"known-sentinel") && argc == 3) { + } else if (!strcasecmp(argv[0],"known-sentinel") && argc == 4) { sentinelRedisInstance *si; /* known-sentinel */