summaryrefslogtreecommitdiff
path: root/src/cluster.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-11-29 17:37:06 +0100
committerantirez <antirez@gmail.com>2013-11-29 17:37:06 +0100
commit8f18345ef0fe3adacb4be4434210b939a7198bed (patch)
tree518efa8f88c1db4761fa6993165c0fd0df436c2d /src/cluster.h
parent3db825fde4f8af8fd3ba56438b4af3b58c1dbb04 (diff)
downloadredis-8f18345ef0fe3adacb4be4434210b939a7198bed.tar.gz
Cluster: basic data structures for nodes black list.
Diffstat (limited to 'src/cluster.h')
-rw-r--r--src/cluster.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cluster.h b/src/cluster.h
index 28d9af806..faba13477 100644
--- a/src/cluster.h
+++ b/src/cluster.h
@@ -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];