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

This commit is contained in:
antirez 2013-11-19 11:03:47 +01:00
parent b8a94463b7
commit 5450833d02

View File

@ -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 <name> <ip> <port> */
@ -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 <name> <ip> <port> */