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

Function clusterManagerCountKeysInSlot

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

Source from the content-addressed store, hash-verified

3557}
3558
3559static signed int clusterManagerCountKeysInSlot(clusterManagerNode *node,
3560 int slot)
3561{
3562 redisReply *reply = CLUSTER_MANAGER_COMMAND(node,
3563 "CLUSTER COUNTKEYSINSLOT %d", slot);
3564 int count = -1;
3565 int success = clusterManagerCheckRedisReply(node, reply, NULL);
3566 if (success && reply->type == REDIS_REPLY_INTEGER) count = reply->integer;
3567 if (reply) freeReplyObject(reply);
3568 return count;
3569}
3570
3571static int clusterManagerBumpEpoch(clusterManagerNode *node) {
3572 redisReply *reply = CLUSTER_MANAGER_COMMAND(node, "CLUSTER BUMPEPOCH");

Calls 2

freeReplyObjectFunction · 0.85

Tested by

no test coverage detected