diff options
Diffstat (limited to 'src/multi.c')
-rw-r--r-- | src/multi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/multi.c b/src/multi.c index 59fc9d9e8..ba3a0cd6c 100644 --- a/src/multi.c +++ b/src/multi.c @@ -110,6 +110,10 @@ void execCommand(redisClient *c) { c->argc = c->mstate.commands[j].argc; c->argv = c->mstate.commands[j].argv; call(c,c->mstate.commands[j].cmd); + + /* Commands may alter argc/argv, restore mstate. */ + c->mstate.commands[j].argc = c->argc; + c->mstate.commands[j].argv = c->argv; } c->argv = orig_argv; c->argc = orig_argc; |