Explorar o código

votequorum: fix node->flags type when receiving nodeinfo messages

old_flags was set to uint16_t but it needs to be uint32_t.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Fabio M. Di Nitto %!s(int64=14) %!d(string=hai) anos
pai
achega
e34f095551
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      exec/votequorum.c

+ 1 - 1
exec/votequorum.c

@@ -1476,7 +1476,7 @@ static void message_handler_req_exec_votequorum_nodeinfo (
 	struct cluster_node *node = NULL;
 	int old_votes;
 	int old_expected;
-	uint16_t old_flags;
+	uint32_t old_flags;
 	nodestate_t old_state;
 	int new_node = 0;
 	int allow_downgrade = 0;