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

Function clusterManagerRemoveNodeFromList

src/redis-cli.c:2567–2578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2565}
2566
2567static void clusterManagerRemoveNodeFromList(list *nodelist,
2568 clusterManagerNode *node) {
2569 listIter li;
2570 listNode *ln;
2571 listRewind(nodelist, &li);
2572 while ((ln = listNext(&li)) != NULL) {
2573 if (node == ln->value) {
2574 listDelNode(nodelist, ln);
2575 break;
2576 }
2577 }
2578}
2579
2580/* Return the node with the specified name (ID) or NULL. */
2581static clusterManagerNode *clusterManagerNodeByName(const char *name) {

Callers 1

Calls 3

listRewindFunction · 0.85
listNextFunction · 0.85
listDelNodeFunction · 0.85

Tested by

no test coverage detected