From 1584c7a31bc7d6a62d082bddfe815d5f8d14beec Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 12 Jan 2015 15:40:30 +0100 Subject: [PATCH] Cluster: initialize mf_end. Can't be initialized by resetManualFailover() since it's actual state the function uses, so we need to initialize it at startup time. Not really a bug in practical terms, but showed up into valgrind and is not technically correct anyway. --- src/cluster.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cluster.c b/src/cluster.c index c1396649..e7219fd6 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -479,6 +479,7 @@ void clusterInit(void) { * the IP address via MEET messages. */ myself->port = server.port; + server.cluster->mf_end = 0; resetManualFailover(); }