| 5148 | } |
| 5149 | |
| 5150 | static int clusterManagerCommandCheck(int argc, char **argv) { |
| 5151 | int port = 0; |
| 5152 | char *ip = NULL; |
| 5153 | if (!getClusterHostFromCmdArgs(argc, argv, &ip, &port)) goto invalid_args; |
| 5154 | clusterManagerNode *node = clusterManagerNewNode(ip, port); |
| 5155 | if (!clusterManagerLoadInfoFromNode(node, 0)) return 0; |
| 5156 | clusterManagerShowClusterInfo(); |
| 5157 | return clusterManagerCheckCluster(0); |
| 5158 | invalid_args: |
| 5159 | fprintf(stderr, CLUSTER_MANAGER_INVALID_HOST_ARG); |
| 5160 | return 0; |
| 5161 | } |
| 5162 | |
| 5163 | static int clusterManagerCommandFix(int argc, char **argv) { |
| 5164 | config.cluster_manager_command.flags |= CLUSTER_MANAGER_CMD_FLAG_FIX; |
no test coverage detected