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

Function clusterManagerNodeArrayInit

app/redis-6.2.6/src/redis-cli.c:5529–5536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5527}
5528
5529static void clusterManagerNodeArrayInit(clusterManagerNodeArray *array,
5530 int alloc_len)
5531{
5532 array->nodes = zcalloc(alloc_len * sizeof(clusterManagerNode*));
5533 array->alloc = array->nodes;
5534 array->len = alloc_len;
5535 array->count = 0;
5536}
5537
5538/* Reset array->nodes to the original array allocation and re-count non-NULL
5539 * nodes. */

Callers 1

Calls 1

zcallocFunction · 0.70

Tested by

no test coverage detected