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

Function clusterManagerNodeArrayInit

src/redis-cli.c:4616–4623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4614}
4615
4616static void clusterManagerNodeArrayInit(clusterManagerNodeArray *array,
4617 int alloc_len)
4618{
4619 array->nodes = zcalloc(alloc_len * sizeof(clusterManagerNode*), MALLOC_LOCAL);
4620 array->alloc = array->nodes;
4621 array->len = alloc_len;
4622 array->count = 0;
4623}
4624
4625/* Reset array->nodes to the original array allocation and re-count non-NULL
4626 * nodes. */

Callers 1

Calls 1

zcallocFunction · 0.85

Tested by

no test coverage detected