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

Function clusterManagerShowNodes

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

Source from the content-addressed store, hash-verified

3333}
3334
3335static void clusterManagerShowNodes(void) {
3336 listIter li;
3337 listNode *ln;
3338 listRewind(cluster_manager.nodes, &li);
3339 while ((ln = listNext(&li)) != NULL) {
3340 clusterManagerNode *node = ln->value;
3341 sds info = clusterManagerNodeInfo(node, 0);
3342 printf("%s\n", (char *) info);
3343 sdsfree(info);
3344 }
3345}
3346
3347static void clusterManagerShowClusterInfo(void) {
3348 int masters = 0;

Callers 2

Calls 5

listRewindFunction · 0.85
listNextFunction · 0.85
clusterManagerNodeInfoFunction · 0.85
sdsfreeFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected