summaryrefslogtreecommitdiff
path: root/src/cluster.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-01-12 15:40:30 +0100
committerantirez <antirez@gmail.com>2015-01-12 15:55:00 +0100
commit6274a6789deaeea35951e5409e94e4ff77de645a (patch)
tree8d6869f5de3c512249d5823c2c365c5c92ef8bab /src/cluster.c
parent0d22121c276873152668472735d7312c591b6a74 (diff)
downloadredis-6274a6789deaeea35951e5409e94e4ff77de645a.tar.gz
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.
Diffstat (limited to 'src/cluster.c')
-rw-r--r--src/cluster.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cluster.c b/src/cluster.c
index a308fc507..7eeaa8e58 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();
}