mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Cluster Manager: cluster is considered consistent if only one node has been found
This commit is contained in:
parent
1b1f80e60f
commit
956bec4ca8
@ -2584,7 +2584,10 @@ cleanup:
|
|||||||
|
|
||||||
static int clusterManagerIsConfigConsistent(void) {
|
static int clusterManagerIsConfigConsistent(void) {
|
||||||
if (cluster_manager.nodes == NULL) return 0;
|
if (cluster_manager.nodes == NULL) return 0;
|
||||||
int consistent = 0;
|
int consistent = (listLength(cluster_manager.nodes) <= 1);
|
||||||
|
// If the Cluster has only one node, it's always consistent
|
||||||
|
// Does it make sense?
|
||||||
|
if (consistent) return 1;
|
||||||
sds first_cfg = NULL;
|
sds first_cfg = NULL;
|
||||||
listIter li;
|
listIter li;
|
||||||
listNode *ln;
|
listNode *ln;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user