Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
956bec4c
Commit
956bec4c
authored
Feb 07, 2018
by
artix
Browse files
Cluster Manager: cluster is considered consistent if only one node has been found
parent
1b1f80e6
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
956bec4c
...
...
@@ -2584,7 +2584,10 @@ cleanup:
static int clusterManagerIsConfigConsistent(void) {
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;
listIter li;
listNode *ln;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment