diff --git a/src/cluster.c b/src/cluster.c index c6d7e484e..27d109914 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -5703,7 +5703,7 @@ void addShardReplyForClusterShards(client *c, list *nodes) { serverAssert((n->slot_info_pairs_count % 2) == 0); addReplyArrayLen(c, n->slot_info_pairs_count); for (int i = 0; i < n->slot_info_pairs_count; i++) - addReplyBulkLongLong(c, (unsigned long)n->slot_info_pairs[i]); + addReplyLongLong(c, (unsigned long)n->slot_info_pairs[i]); } else { /* If no slot info pair is provided, the node owns no slots */ addReplyArrayLen(c, 0); diff --git a/src/commands/cluster-shards.json b/src/commands/cluster-shards.json index dcaad3ea3..e7a082953 100644 --- a/src/commands/cluster-shards.json +++ b/src/commands/cluster-shards.json @@ -26,7 +26,7 @@ "description": "an even number element array specifying the start and end slot numbers for slot ranges owned by this shard", "type": "array", "items": { - "type": "string" + "type": "integer" } }, "nodes": {