Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
2c970532
Commit
2c970532
authored
Nov 22, 2019
by
zhaozhao.zz
Browse files
Propagation: flag module client as CLIENT_MULTI if needed
in case of nested MULTI/EXEC
parent
c73d70fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
2c970532
...
@@ -3243,6 +3243,11 @@ RedisModuleCallReply *RM_Call(RedisModuleCtx *ctx, const char *cmdname, const ch
...
@@ -3243,6 +3243,11 @@ RedisModuleCallReply *RM_Call(RedisModuleCtx *ctx, const char *cmdname, const ch
* a Lua script in the context of AOF and slaves. */
* a Lua script in the context of AOF and slaves. */
if
(
replicate
)
moduleReplicateMultiIfNeeded
(
ctx
);
if
(
replicate
)
moduleReplicateMultiIfNeeded
(
ctx
);
if
(
ctx
->
client
->
flags
&
CLIENT_MULTI
||
ctx
->
flags
&
REDISMODULE_CTX_MULTI_EMITTED
)
{
c
->
flags
|=
CLIENT_MULTI
;
}
/* Run the command */
/* Run the command */
int
call_flags
=
CMD_CALL_SLOWLOG
|
CMD_CALL_STATS
;
int
call_flags
=
CMD_CALL_SLOWLOG
|
CMD_CALL_STATS
;
if
(
replicate
)
{
if
(
replicate
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment