summaryrefslogtreecommitdiff
path: root/src/cluster.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cluster.c')
-rw-r--r--src/cluster.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cluster.c b/src/cluster.c
index 381ff827e..e82f256c2 100644
--- a/src/cluster.c
+++ b/src/cluster.c
@@ -3877,6 +3877,11 @@ int verifyClusterConfigWithData(void) {
int j;
int update_config = 0;
+ /* Return ASAP if a module disabled cluster redirections. In that case
+ * every master can store keys about every possible hash slot. */
+ if (server.cluster_module_flags & CLUSTER_MODULE_FLAG_NO_REDIRECTION)
+ return C_OK;
+
/* If this node is a slave, don't perform the check at all as we
* completely depend on the replication stream. */
if (nodeIsSlave(myself)) return C_OK;