MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / addClusterNode

Function addClusterNode

src/redis-benchmark.cpp:1125–1132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1123}
1124
1125static 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
1134static int fetchClusterConfiguration() {
1135 int success = 1;

Callers 1

Calls 1

zreallocFunction · 0.85

Tested by

no test coverage detected