forgot module.cpp

This commit is contained in:
Malavan Sotheeswaran committed 2023-05-29 22:00:40 -07:00
1 parent d795f4fc63
commit b7d39c8a42
1 file changed
+2 -2
+2 -2
View File
@@ -656,7 +656,7 @@ void moduleHandlePropagationAfterCommandCallback(RedisModuleCtx *ctx) {
/* We don't need to do anything here if the server isn't inside
* a transaction. */
if (!g_pserver->propagate_in_transaction) return;
if (!serverTL->propagate_in_transaction) return;
/* If this command is executed from with Lua or MULTI/EXEC we do not
* need to propagate EXEC */
@@ -1814,7 +1814,7 @@ void moduleReplicateMultiIfNeeded(RedisModuleCtx *ctx) {
* the module command was called by a script. */
if (serverTL->in_eval || serverTL->in_exec) return;
/* If we already emitted MULTI return ASAP. */
if (g_pserver->propagate_in_transaction) return;
if (serverTL->propagate_in_transaction) return;
/* If this is a thread safe context, we do not want to wrap commands
* executed into MULTI/EXEC, they are executed as single commands
* from an external client in essence. */