diff options
Diffstat (limited to 'src/module.c')
-rw-r--r-- | src/module.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/module.c b/src/module.c index be64af368..b6a87ab27 100644 --- a/src/module.c +++ b/src/module.c @@ -574,11 +574,8 @@ void moduleHandlePropagationAfterCommandCallback(RedisModuleCtx *ctx) { /* Handle the replication of the final EXEC, since whatever a command * emits is always wrapped around MULTI/EXEC. */ - robj *propargv[1]; - propargv[0] = createStringObject("EXEC",4); - alsoPropagate(server.execCommand,c->db->id,propargv,1, + alsoPropagate(server.execCommand,c->db->id,&shared.exec,1, PROPAGATE_AOF|PROPAGATE_REPL); - decrRefCount(propargv[0]); /* If this is not a module command context (but is instead a simple * callback context), we have to handle directly the "also propagate" |