mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 23:31:03 +00:00
Cluster Manager: code cleanup
This commit is contained in:
parent
6e9864fe0d
commit
2593fb9c0c
@ -3889,10 +3889,8 @@ static list *clusterManagerGetDisconnectedLinks(clusterManagerNode *node) {
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
if (i == 7) link_status = line;
|
if (i == 7) link_status = line;
|
||||||
|
|
||||||
if (nodename == NULL || addr == NULL || flags == NULL ||
|
if (nodename == NULL || addr == NULL || flags == NULL ||
|
||||||
link_status == NULL)
|
link_status == NULL) continue;
|
||||||
continue;
|
|
||||||
if (strstr(flags, "myself") != NULL) continue;
|
if (strstr(flags, "myself") != NULL) continue;
|
||||||
int disconnected = ((strstr(flags, "disconnected") != NULL) ||
|
int disconnected = ((strstr(flags, "disconnected") != NULL) ||
|
||||||
(strstr(link_status, "disconnected")));
|
(strstr(link_status, "disconnected")));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user