From 53c542dd138fd0a44cb54038c6f72d6476eef7e6 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Mon, 23 Dec 2024 12:15:50 -0800 Subject: [PATCH] Remove readability refactor for failover auth Signed-off-by: Madelyn Olson --- src/cluster_legacy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }