Propagation: flag module client as CLIENT_MULTI if needed
in case of nested MULTI/EXEC
This commit is contained in:
parent
c73d70fb46
commit
2c970532dc
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user