Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
f57bb36c
Commit
f57bb36c
authored
Dec 17, 2013
by
antirez
Browse files
Cluster: initialize todo_before_sleep flags to 0.
parent
c70c0c6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
f57bb36c
...
@@ -259,6 +259,7 @@ void clusterInit(void) {
...
@@ -259,6 +259,7 @@ void clusterInit(void) {
server.cluster->currentEpoch = 0;
server.cluster->currentEpoch = 0;
server.cluster->state = REDIS_CLUSTER_FAIL;
server.cluster->state = REDIS_CLUSTER_FAIL;
server.cluster->size = 1;
server.cluster->size = 1;
server.cluster->todo_before_sleep = 0;
server.cluster->nodes = dictCreate(&clusterNodesDictType,NULL);
server.cluster->nodes = dictCreate(&clusterNodesDictType,NULL);
server.cluster->nodes_black_list =
server.cluster->nodes_black_list =
dictCreate(&clusterNodesBlackListDictType,NULL);
dictCreate(&clusterNodesBlackListDictType,NULL);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment