Commit 673c9d70 authored by antirez's avatar antirez
Browse files

module: fix propagation API bug.

parent 97f6e314
...@@ -561,9 +561,9 @@ void moduleHandlePropagationAfterCommandCallback(RedisModuleCtx *ctx) { ...@@ -561,9 +561,9 @@ void moduleHandlePropagationAfterCommandCallback(RedisModuleCtx *ctx) {
propagate(rop->cmd,rop->dbid,rop->argv,rop->argc,target); propagate(rop->cmd,rop->dbid,rop->argv,rop->argc,target);
} }
redisOpArrayFree(&server.also_propagate); 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. */ /* Free the context after the user function was called. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment