mirror of
https://github.com/fluencelabs/redis
synced 2025-06-15 02:01:21 +00:00
Modules: fix for scripting replication of modules commands.
See issue #4466 / #4467.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user