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