mirror of
https://github.com/fluencelabs/redis
synced 2025-06-22 13:31:32 +00:00
CONFIG SET: accept slave-priority zero, it is valid.
This commit is contained in:
@ -791,7 +791,7 @@ void configSetCommand(redisClient *c) {
|
||||
server.repl_disable_tcp_nodelay = yn;
|
||||
} else if (!strcasecmp(c->argv[2]->ptr,"slave-priority")) {
|
||||
if (getLongLongFromObject(o,&ll) == REDIS_ERR ||
|
||||
ll <= 0) goto badfmt;
|
||||
ll < 0) goto badfmt;
|
||||
server.slave_priority = ll;
|
||||
} else if (!strcasecmp(c->argv[2]->ptr,"min-slaves-to-write")) {
|
||||
if (getLongLongFromObject(o,&ll) == REDIS_ERR ||
|
||||
|
Reference in New Issue
Block a user