| 5135 | } |
| 5136 | |
| 5137 | static int clusterManagerCommandInfo(int argc, char **argv) { |
| 5138 | int port = 0; |
| 5139 | char *ip = NULL; |
| 5140 | if (!getClusterHostFromCmdArgs(argc, argv, &ip, &port)) goto invalid_args; |
| 5141 | clusterManagerNode *node = clusterManagerNewNode(ip, port); |
| 5142 | if (!clusterManagerLoadInfoFromNode(node, 0)) return 0; |
| 5143 | clusterManagerShowClusterInfo(); |
| 5144 | return 1; |
| 5145 | invalid_args: |
| 5146 | fprintf(stderr, CLUSTER_MANAGER_INVALID_HOST_ARG); |
| 5147 | return 0; |
| 5148 | } |
| 5149 | |
| 5150 | static int clusterManagerCommandCheck(int argc, char **argv) { |
| 5151 | int port = 0; |
nothing calls this directly
no test coverage detected