Cluster: initialize todo_before_sleep flags to 0.

This commit is contained in:
antirez 2013-12-17 12:22:02 +01:00
parent c70c0c6db7
commit f57bb36ce7

View File

@ -259,6 +259,7 @@ void clusterInit(void) {
server.cluster->currentEpoch = 0;
server.cluster->state = REDIS_CLUSTER_FAIL;
server.cluster->size = 1;
server.cluster->todo_before_sleep = 0;
server.cluster->nodes = dictCreate(&clusterNodesDictType,NULL);
server.cluster->nodes_black_list =
dictCreate(&clusterNodesBlackListDictType,NULL);