Cluster Manager: code cleanup
This commit is contained in:
parent
391caf8962
commit
48d7f54aae
@ -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