Commit 2593fb9c authored by artix's avatar artix
Browse files

Cluster Manager: code cleanup

parent 6e9864fe
...@@ -3889,10 +3889,8 @@ static list *clusterManagerGetDisconnectedLinks(clusterManagerNode *node) { ...@@ -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")));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment