module: fix propagation API bug.

This commit is contained in:
antirez 2019-10-17 18:28:34 +02:00
parent ea85cda320
commit 7414be69c8

View File

@ -561,10 +561,10 @@ 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. */ /* Restore the previous oparray in case of nexted use of the API. */
server.also_propagate = ctx->saved_oparray; server.also_propagate = ctx->saved_oparray;
} }
}
/* Free the context after the user function was called. */ /* Free the context after the user function was called. */
void moduleFreeContext(RedisModuleCtx *ctx) { void moduleFreeContext(RedisModuleCtx *ctx) {