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
c002b95d
Commit
c002b95d
authored
Feb 07, 2018
by
artix
Browse files
Cluster Manager: cluster is considered consistent if only one node has been found
parent
4cc8de1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
c002b95d
...
...
@@ -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