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
9bb7c4b2
Commit
9bb7c4b2
authored
Jun 01, 2018
by
artix
Committed by
antirez
Jun 01, 2018
Browse files
Cluster Manager: fixed master_id check in clusterManagerNodeLoadInfo
parent
07142f03
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
9bb7c4b2
...
...
@@ -3088,7 +3088,7 @@ static int clusterManagerNodeLoadInfo(clusterManagerNode *node, int opts,
currentNode->flags |= CLUSTER_MANAGER_FLAG_FAIL;
else if (strcmp(flag, "slave") == 0) {
currentNode->flags |= CLUSTER_MANAGER_FLAG_SLAVE;
if (master_id
=
=
0
) {
if (master_id
!
=
NULL
) {
if (currentNode->replicate) sdsfree(currentNode->replicate);
currentNode->replicate = sdsnew(master_id);
}
...
...
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