mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
multi: ignore multiState's cmd_flags when loading AOF
This commit is contained in:
parent
274531396c
commit
1530c0a7dd
@ -144,7 +144,7 @@ void execCommand(client *c) {
|
|||||||
* was initiated when the instance was a master or a writable replica and
|
* was initiated when the instance was a master or a writable replica and
|
||||||
* then the configuration changed (for example instance was turned into
|
* then the configuration changed (for example instance was turned into
|
||||||
* a replica). */
|
* a replica). */
|
||||||
if (server.masterhost && server.repl_slave_ro &&
|
if (!server.loading && server.masterhost && server.repl_slave_ro &&
|
||||||
!(c->flags & CLIENT_MASTER) && c->mstate.cmd_flags & CMD_WRITE)
|
!(c->flags & CLIENT_MASTER) && c->mstate.cmd_flags & CMD_WRITE)
|
||||||
{
|
{
|
||||||
addReplyError(c,
|
addReplyError(c,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user