diff options
author | antirez <antirez@gmail.com> | 2019-10-17 18:28:34 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2019-10-17 18:28:34 +0200 |
commit | 673c9d702962a5618650108eaf4c5f38bcafe164 (patch) | |
tree | fe8845a1e6bcd246db922487d8b69d4bc7acab28 | |
parent | 97f6e314c130d8d5bc546a7f0c4cb68d28ea3dfb (diff) | |
download | redis-673c9d702962a5618650108eaf4c5f38bcafe164.tar.gz |
module: fix propagation API bug.
-rw-r--r-- | src/module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/module.c b/src/module.c index cf6da9aa1..ff5eba787 100644 --- a/src/module.c +++ b/src/module.c @@ -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. */ |