Commit 5450833d authored by antirez's avatar antirez
Browse files

Sentinel: arity of known-sentinel/slave is 4 not 3.

parent b8a94463
...@@ -1309,7 +1309,7 @@ char *sentinelHandleConfiguration(char **argv, int argc) { ...@@ -1309,7 +1309,7 @@ char *sentinelHandleConfiguration(char **argv, int argc) {
ri->config_epoch = strtoull(argv[2],NULL,10); ri->config_epoch = strtoull(argv[2],NULL,10);
if (ri->config_epoch > sentinel.current_epoch) if (ri->config_epoch > sentinel.current_epoch)
sentinel.current_epoch = ri->config_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; sentinelRedisInstance *slave;
/* known-slave <name> <ip> <port> */ /* known-slave <name> <ip> <port> */
...@@ -1320,7 +1320,7 @@ char *sentinelHandleConfiguration(char **argv, int argc) { ...@@ -1320,7 +1320,7 @@ char *sentinelHandleConfiguration(char **argv, int argc) {
{ {
return "Wrong hostname or port for slave."; 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; sentinelRedisInstance *si;
/* known-sentinel <name> <ip> <port> */ /* known-sentinel <name> <ip> <port> */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment