MCPcopy Create free account
hub / github.com/F-Stack/f-stack / addClusterNode

Function addClusterNode

app/redis-6.2.6/src/redis-benchmark.c:1110–1117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1108}
1109
1110static clusterNode **addClusterNode(clusterNode *node) {
1111 int count = config.cluster_node_count + 1;
1112 config.cluster_nodes = zrealloc(config.cluster_nodes,
1113 count * sizeof(*node));
1114 if (!config.cluster_nodes) return NULL;
1115 config.cluster_nodes[config.cluster_node_count++] = node;
1116 return config.cluster_nodes;
1117}
1118
1119static int fetchClusterConfiguration() {
1120 int success = 1;

Callers 1

Calls 1

zreallocFunction · 0.85

Tested by

no test coverage detected