Fix module test break

Former-commit-id: 50dfee2039e199f60f927790e7ac81625402b191
This commit is contained in:
John Sully 2021-12-23 13:12:34 -05:00
parent 440c637c6c
commit 9f09e3aa9c

View File

@ -4289,7 +4289,14 @@ RedisModuleCallReply *RM_Call(RedisModuleCtx *ctx, const char *cmdname, const ch
if (!(flags & REDISMODULE_ARGV_NO_REPLICAS)) if (!(flags & REDISMODULE_ARGV_NO_REPLICAS))
call_flags |= CMD_CALL_PROPAGATE_REPL; call_flags |= CMD_CALL_PROPAGATE_REPL;
} }
{
aeAcquireLock();
std::unique_lock<fastlock> ul(c->lock);
call(c,call_flags); call(c,call_flags);
aeReleaseLock();
}
g_pserver->replication_allowed = prev_replication_allowed; g_pserver->replication_allowed = prev_replication_allowed;
serverAssert((c->flags & CLIENT_BLOCKED) == 0); serverAssert((c->flags & CLIENT_BLOCKED) == 0);