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

Function clusterCountNonFailingSlaves

src/cluster.cpp:981–987  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

979}
980
981int clusterCountNonFailingSlaves(clusterNode *n) {
982 int j, okslaves = 0;
983
984 for (j = 0; j < n->numslaves; j++)
985 if (!nodeFailed(n->slaves[j])) okslaves++;
986 return okslaves;
987}
988
989/* Low level cleanup of the node structure. Only called by clusterDelNode(). */
990void freeClusterNode(clusterNode *n) {

Callers 2

clusterCronFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected