Modules: fix for scripting replication of modules commands.

See issue #4466 / #4467.
This commit is contained in:
antirez
2017-11-23 13:05:00 +01:00
parent ada206559d
commit de914ede93
2 changed files with 9 additions and 7 deletions

View File

@ -2265,8 +2265,9 @@ void call(client *c, int flags) {
propagate_flags &= ~PROPAGATE_AOF;
/* Call propagate() only if at least one of AOF / replication
* propagation is needed. */
if (propagate_flags != PROPAGATE_NONE)
* propagation is needed. Note that modules commands handle replication
* in an explicit way, so we never replicate them automatically. */
if (propagate_flags != PROPAGATE_NONE && !(c->cmd->flags & CMD_MODULE))
propagate(c->cmd,c->db->id,c->argv,c->argc,propagate_flags);
}