From b7a2a53a8c31eb5c5de1967a319624110001849e Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 17 Oct 2019 18:28:34 +0200 Subject: module: fix propagation API bug. --- src/module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/module.c b/src/module.c index da1fac7fc..d63e121a1 100644 --- a/src/module.c +++ b/src/module.c @@ -540,9 +540,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. */ -- cgit v1.2.1