mirror of
https://github.com/redis/redis.git
synced 2026-02-03 20:39:54 -05:00
code review
This commit is contained in:
parent
c58fa5a4fd
commit
72417dc58c
1 changed files with 3 additions and 1 deletions
|
|
@ -6936,8 +6936,10 @@ static int clusterManagerCommandCreate(int argc, char **argv) {
|
|||
int masters_count = CLUSTER_MANAGER_MASTERS_COUNT(node_len, replicas);
|
||||
if (masters_count < 3) {
|
||||
int ignore_force = 0;
|
||||
clusterManagerLogInfo("Requested to create a cluster with %d masters and "
|
||||
"%d replicas per master.\n", masters_count, replicas);
|
||||
if (!confirmWithYes("Redis Cluster requires at least 3 master nodes for "
|
||||
"automatic failover, are you sure?", ignore_force))
|
||||
"automatic failover. Are you sure?", ignore_force))
|
||||
return 0;
|
||||
}
|
||||
clusterManagerLogInfo(">>> Performing hash slots allocation "
|
||||
|
|
|
|||
Loading…
Reference in a new issue