AOF: discard if we lost EXEC when loading aof

This commit is contained in:
zhaozhao.zz
2018-08-02 14:59:28 +08:00
parent 39c70e728b
commit eb87da6127
2 changed files with 14 additions and 3 deletions

View File

@ -158,7 +158,7 @@ void execCommand(client *c) {
must_propagate = 1;
}
call(c,CMD_CALL_FULL);
call(c,server.loading ? CMD_CALL_NONE : CMD_CALL_FULL);
/* Commands may alter argc/argv, restore mstate. */
c->mstate.commands[j].argc = c->argc;