| 4342 | } |
| 4343 | |
| 4344 | int getSlotOrReply(client *c, robj *o) { |
| 4345 | long long slot; |
| 4346 | |
| 4347 | if (getLongLongFromObject(o,&slot) != C_OK || |
| 4348 | slot < 0 || slot >= CLUSTER_SLOTS) |
| 4349 | { |
| 4350 | addReplyError(c,"Invalid or out of range slot"); |
| 4351 | return -1; |
| 4352 | } |
| 4353 | return (int) slot; |
| 4354 | } |
| 4355 | |
| 4356 | void addNodeReplyForClusterSlot(client *c, clusterNode *node, int start_slot, int end_slot) { |
| 4357 | int i, nested_elements = 3; /* slots (2) + master addr (1) */ |
no test coverage detected