summaryrefslogtreecommitdiff
path: root/src/cluster.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2017-03-27 15:26:56 +0200
committerantirez <antirez@gmail.com>2017-03-27 16:37:22 +0200
commit1409c545da7861912acef4f42c4932f6c23e9937 (patch)
tree6f8a68a70c28de3c299663470427756166d47cd7 /src/cluster.h
parent94751543b0a15ea333dab3121fa32747cf59de8f (diff)
downloadredis-1409c545da7861912acef4f42c4932f6c23e9937.tar.gz
Cluster: hash slots tracking using a radix tree.
Diffstat (limited to 'src/cluster.h')
-rw-r--r--src/cluster.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cluster.h b/src/cluster.h
index 6dd69a01b..be6fe0bdc 100644
--- a/src/cluster.h
+++ b/src/cluster.h
@@ -116,7 +116,8 @@ typedef struct clusterState {
clusterNode *migrating_slots_to[CLUSTER_SLOTS];
clusterNode *importing_slots_from[CLUSTER_SLOTS];
clusterNode *slots[CLUSTER_SLOTS];
- zskiplist *slots_to_keys;
+ uint64_t slots_keys_count[CLUSTER_SLOTS];
+ rax *slots_to_keys;
/* The following fields are used to take the slave state on elections. */
mstime_t failover_auth_time; /* Time of previous or next election. */
int failover_auth_count; /* Number of votes received so far. */