mirror of
https://github.com/fluencelabs/redis
synced 2025-03-23 19:10:51 +00:00
parent
0ed2c60118
commit
6739ef4447
@ -2736,6 +2736,12 @@ void sentinelCommand(redisClient *c) {
|
||||
!= REDIS_OK) return;
|
||||
if (getLongFromObjectOrReply(c,c->argv[4],&port,"Invalid port")
|
||||
!= REDIS_OK) return;
|
||||
|
||||
if (quorum <= 0) {
|
||||
addReplyError(c, "Quorum must be 1 or greater.");
|
||||
return;
|
||||
}
|
||||
|
||||
/* Make sure the IP field is actually a valid IP before passing it
|
||||
* to createSentinelRedisInstance(), otherwise we may trigger a
|
||||
* DNS lookup at runtime. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user