diff options
author | antirez <antirez@gmail.com> | 2014-01-28 10:10:56 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-01-28 10:10:56 +0100 |
commit | 89a731b3aa06eca001393069a636ec07af33a7eb (patch) | |
tree | 05b9043d6b4b7b48d866066434d9dfa9368dbc1d | |
parent | ecfefde76050afb81f119a401ed0bb7d8223e3d5 (diff) | |
download | redis-89a731b3aa06eca001393069a636ec07af33a7eb.tar.gz |
Fixed inverted if condition in MISCONF error code path.
-rw-r--r-- | src/redis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redis.c b/src/redis.c index 0ad08e8c8..63ee3b596 100644 --- a/src/redis.c +++ b/src/redis.c @@ -1924,7 +1924,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)) { |