Unverified Commit 8213f64d authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #5122 from trevor211/allowWritesWhenAofDisabled

Accept write commands if persisting is disabled
parents 46fd9278 2d4366c5
...@@ -2524,7 +2524,8 @@ int processCommand(client *c) { ...@@ -2524,7 +2524,8 @@ int processCommand(client *c) {
if (((server.stop_writes_on_bgsave_err && if (((server.stop_writes_on_bgsave_err &&
server.saveparamslen > 0 && server.saveparamslen > 0 &&
server.lastbgsave_status == C_ERR) || server.lastbgsave_status == C_ERR) ||
server.aof_last_write_status == C_ERR) && (server.aof_state != AOF_OFF &&
server.aof_last_write_status == C_ERR)) &&
server.masterhost == NULL && server.masterhost == NULL &&
(c->cmd->flags & CMD_WRITE || (c->cmd->flags & 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