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

Function clusterManagerRemoveNodeFromList

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

Source from the content-addressed store, hash-verified

2854}
2855
2856static void clusterManagerRemoveNodeFromList(list *nodelist,
2857 clusterManagerNode *node) {
2858 listIter li;
2859 listNode *ln;
2860 listRewind(nodelist, &li);
2861 while ((ln = listNext(&li)) != NULL) {
2862 if (node == ln->value) {
2863 listDelNode(nodelist, ln);
2864 break;
2865 }
2866 }
2867}
2868
2869/* Return the node with the specified name (ID) or NULL. */
2870static clusterManagerNode *clusterManagerNodeByName(const char *name) {

Callers 1

Calls 3

listRewindFunction · 0.85
listNextFunction · 0.85
listDelNodeFunction · 0.85

Tested by

no test coverage detected