Commit 2eb8a460 authored by antirez's avatar antirez
Browse files

Reply to PING with error when there is a MISCONF state.

parent a46f841d
...@@ -1922,7 +1922,8 @@ int processCommand(redisClient *c) { ...@@ -1922,7 +1922,8 @@ 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 &&
c->cmd->flags & REDIS_CMD_WRITE) (c->cmd->flags & REDIS_CMD_WRITE ||
c->cmd->proc == pingCommand))
{ {
flagTransaction(c); flagTransaction(c);
addReply(c, shared.bgsaveerr); addReply(c, shared.bgsaveerr);
......
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