From f2e00755e39b0e96047a3247db8ee0d3d6f4ee16 Mon Sep 17 00:00:00 2001 From: VivekSainiEQ Date: Mon, 22 Nov 2021 22:21:57 +0000 Subject: [PATCH] Fix failing cluster test Former-commit-id: 960503a4710d4379d5ebbb67d7ac82705f312913 --- src/cluster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cluster.cpp b/src/cluster.cpp index b86ad81d3..10f50f62f 100644 --- a/src/cluster.cpp +++ b/src/cluster.cpp @@ -5867,7 +5867,7 @@ clusterNode *getNodeByQuery(client *c, struct redisCommand *cmd, robj **argv, in multiState *ms, _ms; multiCmd mc; int i, slot = 0, migrating_slot = 0, importing_slot = 0, missing_keys = 0; - serverAssert(GlobalLocksAcquired()); + serverAssert((c->cmd->flags & CMD_ASYNC_OK) || GlobalLocksAcquired()); /* Allow any key to be set if a module disabled cluster redirections. */ if (g_pserver->cluster_module_flags & CLUSTER_MODULE_FLAG_NO_REDIRECTION)