From 054632f551384e70192035f515082ab2514627a3 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 31 May 2013 19:31:36 +0200 Subject: [PATCH] CONFIG SET: accept slave-priority zero, it is valid. --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index 242f7367..5595e924 100644 --- a/src/config.c +++ b/src/config.c @@ -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 || -- GitLab