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

Function clusterManagerNodeIsCluster

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

Source from the content-addressed store, hash-verified

2937}
2938
2939static int clusterManagerNodeIsCluster(clusterManagerNode *node, char **err) {
2940 redisReply *info = clusterManagerGetNodeRedisInfo(node, err);
2941 if (info == NULL) return 0;
2942 int is_cluster = (int) getLongInfoField(info->str, "cluster_enabled");
2943 freeReplyObject(info);
2944 return is_cluster;
2945}
2946
2947/* Checks whether the node is empty. Node is considered not-empty if it has
2948 * some key or if it already knows other nodes */

Callers 3

Calls 3

getLongInfoFieldFunction · 0.85
freeReplyObjectFunction · 0.85

Tested by

no test coverage detected