diff options
author | antirez <antirez@gmail.com> | 2018-09-19 12:02:37 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2018-09-19 12:02:37 +0200 |
commit | 3213e8de921ef55896f740fb55e9469bbe2a22c4 (patch) | |
tree | 1b02a767b33a06124c777fe729abd6f3e2b74970 /src/cluster.c | |
parent | 777cc5b98738df0156b1c822d7fb7851b5ffb4a6 (diff) | |
download | redis-3213e8de921ef55896f740fb55e9469bbe2a22c4.tar.gz |
Module cluster flags: add RM_SetClusterFlags() API.cluster-api-improvements
Diffstat (limited to 'src/cluster.c')
-rw-r--r-- | src/cluster.c | 5 |
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; |