Accept write commands if persisting is disabled,

event if we do have problems persisting on disk
previously.
This commit is contained in:
WuYunlong 2018-07-14 09:06:23 +08:00
parent ab33bcd346
commit 2d4366c544

View File

@ -2519,7 +2519,8 @@ int processCommand(client *c) {
if (((server.stop_writes_on_bgsave_err &&
server.saveparamslen > 0 &&
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 &&
(c->cmd->flags & CMD_WRITE ||
c->cmd->proc == pingCommand))