diff --git a/src/cluster_legacy.c b/src/cluster_legacy.c index 9a23527b30..3d838dfe06 100644 --- a/src/cluster_legacy.c +++ b/src/cluster_legacy.c @@ -4361,7 +4361,7 @@ void clusterRequestFailoverAuth(void) { /* If this is a manual failover, set the CLUSTERMSG_FLAG0_FORCEACK bit * in the header to communicate the nodes receiving the message that * they should authorized the failover even if the primary is working. */ - if (server.cluster->mf_end) getMessageFromSendBlock(msgblock)->mflags[0] |= CLUSTERMSG_FLAG0_FORCEACK; + if (server.cluster->mf_end) msgblock->data[0].msg.mflags[0] |= CLUSTERMSG_FLAG0_FORCEACK; clusterBroadcastMessage(msgblock); clusterMsgSendBlockDecrRefCount(msgblock); }