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

Function clusterManagerNodeIsCluster

src/redis-cli.c:2650–2656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2648}
2649
2650static int clusterManagerNodeIsCluster(clusterManagerNode *node, char **err) {
2651 redisReply *info = clusterManagerGetNodeRedisInfo(node, err);
2652 if (info == NULL) return 0;
2653 int is_cluster = (int) getLongInfoField(info->str, "cluster_enabled");
2654 freeReplyObject(info);
2655 return is_cluster;
2656}
2657
2658/* Checks whether the node is empty. Node is considered not-empty if it has
2659 * 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