| 1123 | } |
| 1124 | |
| 1125 | static clusterNode **addClusterNode(clusterNode *node) { |
| 1126 | int count = config.cluster_node_count + 1; |
| 1127 | config.cluster_nodes = (clusterNode**)zrealloc(config.cluster_nodes, |
| 1128 | count * sizeof(*node), MALLOC_LOCAL); |
| 1129 | if (!config.cluster_nodes) return NULL; |
| 1130 | config.cluster_nodes[config.cluster_node_count++] = node; |
| 1131 | return config.cluster_nodes; |
| 1132 | } |
| 1133 | |
| 1134 | static int fetchClusterConfiguration() { |
| 1135 | int success = 1; |
no test coverage detected