mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 15:21:03 +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);
|
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) {
|
|||||||
{
|
{
|
||||||
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> */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user