mirror of https://github.com/redis/redis.git
module: fix propagation API bug.
This commit is contained in:
parent
97f6e314c1
commit
673c9d7029
|
|
@ -561,9 +561,9 @@ void moduleHandlePropagationAfterCommandCallback(RedisModuleCtx *ctx) {
|
|||
propagate(rop->cmd,rop->dbid,rop->argv,rop->argc,target);
|
||||
}
|
||||
redisOpArrayFree(&server.also_propagate);
|
||||
/* Restore the previous oparray in case of nexted use of the API. */
|
||||
server.also_propagate = ctx->saved_oparray;
|
||||
}
|
||||
/* Restore the previous oparray in case of nexted use of the API. */
|
||||
server.also_propagate = ctx->saved_oparray;
|
||||
}
|
||||
|
||||
/* Free the context after the user function was called. */
|
||||
|
|
|
|||
Loading…
Reference in New Issue