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

Function clusterManagerShowNodes

src/redis-cli.c:2946–2956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2944}
2945
2946void clusterManagerShowNodes(void) {
2947 listIter li;
2948 listNode *ln;
2949 listRewind(cluster_manager.nodes, &li);
2950 while ((ln = listNext(&li)) != NULL) {
2951 clusterManagerNode *node = ln->value;
2952 sds info = clusterManagerNodeInfo(node, 0);
2953 printf("%s\n", (char *) info);
2954 sdsfree(info);
2955 }
2956}
2957
2958static void clusterManagerShowClusterInfo(void) {
2959 int masters = 0;

Callers 2

Calls 4

listRewindFunction · 0.85
listNextFunction · 0.85
clusterManagerNodeInfoFunction · 0.85
sdsfreeFunction · 0.85

Tested by

no test coverage detected