• Binbin's avatar
    CLUSTER SHARDS should returns slots as integers, not strings (#10683) · 2a1ea8c7
    Binbin authored
    It used to returns slots as strings, like:
    ```
    redis> cluster shards
    1) 1) "slots"
       2) 1) "10923"
          2) "16383"
    ```
    
    CLUSTER SHARDS docs and the top comment of #10293 says that it returns integers.
    Note other commands like CLUSTER SLOTS, it returns slots as integers.
    Use addReplyLongLong instead of addReplyBulkLongLong, now it returns slots as integers:
    ```
    redis> cluster shards
    1) 1) "slots"
       2) 1) (integer) 10923
          2) (integer) 16383
    ```
    
    This is a small breaking change, introduced in 7.0.0 (7.0 RC3, #10293)
    
    Fixes #10680
    2a1ea8c7
cluster.c 275 KB