| 3168 | } |
| 3169 | |
| 3170 | signed int clusterManagerCountKeysInSlot(clusterManagerNode *node, |
| 3171 | int slot) |
| 3172 | { |
| 3173 | redisReply *reply = CLUSTER_MANAGER_COMMAND(node, |
| 3174 | "CLUSTER COUNTKEYSINSLOT %d", slot); |
| 3175 | int count = -1; |
| 3176 | int success = clusterManagerCheckRedisReply(node, reply, NULL); |
| 3177 | if (success && reply->type == REDIS_REPLY_INTEGER) count = reply->integer; |
| 3178 | if (reply) freeReplyObject(reply); |
| 3179 | return count; |
| 3180 | } |
| 3181 | |
| 3182 | static int clusterManagerBumpEpoch(clusterManagerNode *node) { |
| 3183 | redisReply *reply = CLUSTER_MANAGER_COMMAND(node, "CLUSTER BUMPEPOCH"); |
no test coverage detected