| 6048 | } |
| 6049 | |
| 6050 | static int clusterManagerCommandInfo(int argc, char **argv) { |
| 6051 | int port = 0; |
| 6052 | char *ip = NULL; |
| 6053 | if (!getClusterHostFromCmdArgs(argc, argv, &ip, &port)) goto invalid_args; |
| 6054 | clusterManagerNode *node = clusterManagerNewNode(ip, port); |
| 6055 | if (!clusterManagerLoadInfoFromNode(node, 0)) return 0; |
| 6056 | clusterManagerShowClusterInfo(); |
| 6057 | return 1; |
| 6058 | invalid_args: |
| 6059 | fprintf(stderr, CLUSTER_MANAGER_INVALID_HOST_ARG); |
| 6060 | return 0; |
| 6061 | } |
| 6062 | |
| 6063 | static int clusterManagerCommandCheck(int argc, char **argv) { |
| 6064 | int port = 0; |
nothing calls this directly
no test coverage detected