Commit 89a731b3 authored by antirez's avatar antirez
Browse files

Fixed inverted if condition in MISCONF error code path.

parent ecfefde7
...@@ -1924,7 +1924,7 @@ int processCommand(redisClient *c) { ...@@ -1924,7 +1924,7 @@ int processCommand(redisClient *c) {
if (server.stop_writes_on_bgsave_err && if (server.stop_writes_on_bgsave_err &&
server.saveparamslen > 0 server.saveparamslen > 0
&& server.lastbgsave_status == REDIS_ERR && && server.lastbgsave_status == REDIS_ERR &&
server.masterhost != NULL && server.masterhost == NULL &&
(c->cmd->flags & REDIS_CMD_WRITE || (c->cmd->flags & REDIS_CMD_WRITE ||
c->cmd->proc == pingCommand)) c->cmd->proc == pingCommand))
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment