summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-10-17 18:28:34 +0200
committerantirez <antirez@gmail.com>2019-11-14 17:48:51 +0100
commitb7a2a53a8c31eb5c5de1967a319624110001849e (patch)
tree86177528b8e4c8d98db119c1cdcceaa2970190f1
parent278bd6e3b6116adcf4f132dc4516fcd88d02f740 (diff)
downloadredis-b7a2a53a8c31eb5c5de1967a319624110001849e.tar.gz
module: fix propagation API bug.
-rw-r--r--src/module.c4
1 files 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. */