Cluster: basic data structures for nodes black list.

This commit is contained in:
antirez
2013-11-29 17:37:06 +01:00
parent 3db825fde4
commit 8f18345ef0
4 changed files with 16 additions and 0 deletions

View File

@ -78,6 +78,7 @@ typedef struct clusterState {
int state; /* REDIS_CLUSTER_OK, REDIS_CLUSTER_FAIL, ... */
int size; /* Num of master nodes with at least one slot */
dict *nodes; /* Hash table of name -> clusterNode structures */
dict *nodes_black_list; /* Nodes we don't re-add for a few seconds. */
clusterNode *migrating_slots_to[REDIS_CLUSTER_SLOTS];
clusterNode *importing_slots_from[REDIS_CLUSTER_SLOTS];
clusterNode *slots[REDIS_CLUSTER_SLOTS];