mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
Sentinel: arity of known-sentinel/slave is 4 not 3.
This commit is contained in:
parent
b8a94463b7
commit
5450833d02
@ -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> */
|
||||
|
Loading…
x
Reference in New Issue
Block a user