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

@ -260,6 +260,8 @@ void clusterInit(void) {
server.cluster->state = REDIS_CLUSTER_FAIL;
server.cluster->size = 1;
server.cluster->nodes = dictCreate(&clusterNodesDictType,NULL);
server.cluster->nodes_black_list =
dictCreate(&clusterNodesBlackListDictType,NULL);
server.cluster->failover_auth_time = 0;
server.cluster->failover_auth_count = 0;
server.cluster->failover_auth_epoch = 0;