summaryrefslogtreecommitdiff
path: root/src/cluster.h
diff options
context:
space:
mode:
authorHarkrishn Patro <harkrisp@amazon.com>2022-03-16 02:24:40 +0100
committerGitHub <noreply@github.com>2022-03-15 18:24:40 -0700
commit45ccae89bb998b402610f35ea7ca961a92c46303 (patch)
tree4e712cbabe6d633ed4588af280022eb28dd7e627 /src/cluster.h
parent416c9ac2ef5b7adfdfd83e2b98ec25de23f37627 (diff)
downloadredis-45ccae89bb998b402610f35ea7ca961a92c46303.tar.gz
Add new cluster shards command (#10293)
Implement a new cluster shards command, which provides a flexible and extensible API for topology discovery. Co-authored-by: Madelyn Olson <madelyneolson@gmail.com>
Diffstat (limited to 'src/cluster.h')
-rw-r--r--src/cluster.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cluster.h b/src/cluster.h
index 314b747be..a944056eb 100644
--- a/src/cluster.h
+++ b/src/cluster.h
@@ -118,7 +118,7 @@ typedef struct clusterNode {
int flags; /* CLUSTER_NODE_... */
uint64_t configEpoch; /* Last configEpoch observed for this node */
unsigned char slots[CLUSTER_SLOTS/8]; /* slots handled by this node */
- sds slots_info; /* Slots info represented by string. */
+ list *slot_info_pairs; /* Slots info represented as (start/end) pair (consecutive index). */
int numslots; /* Number of slots handled by this node */
int numslaves; /* Number of slave nodes, if this is a master */
struct clusterNode **slaves; /* pointers to slave nodes */