Commit 60817bb2 authored by antirez's avatar antirez
Browse files

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

parent 0addf8af
......@@ -1996,7 +1996,8 @@ int processCommand(redisClient *c) {
if (server.stop_writes_on_bgsave_err &&
server.saveparamslen > 0
&& server.lastbgsave_status == REDIS_ERR &&
c->cmd->flags & REDIS_CMD_WRITE)
(c->cmd->flags & REDIS_CMD_WRITE ||
c->cmd->proc == pingCommand))
{
flagTransaction(c);
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