Fixed inverted if condition in MISCONF error code path.

This commit is contained in:
antirez 2014-01-28 10:10:56 +01:00
parent 23f4e9f0d9
commit 72f1715e45

View File

@ -2026,7 +2026,7 @@ int processCommand(redisClient *c) {
if (server.stop_writes_on_bgsave_err &&
server.saveparamslen > 0
&& server.lastbgsave_status == REDIS_ERR &&
server.masterhost != NULL &&
server.masterhost == NULL &&
(c->cmd->flags & REDIS_CMD_WRITE ||
c->cmd->proc == pingCommand))
{