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

Function clusterCountNonFailingSlaves

app/redis-6.2.6/src/cluster.c:942–948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

940}
941
942int clusterCountNonFailingSlaves(clusterNode *n) {
943 int j, okslaves = 0;
944
945 for (j = 0; j < n->numslaves; j++)
946 if (!nodeFailed(n->slaves[j])) okslaves++;
947 return okslaves;
948}
949
950/* Low level cleanup of the node structure. Only called by clusterDelNode(). */
951void freeClusterNode(clusterNode *n) {

Callers 2

clusterCronFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected