Blob Blame History Raw
From d8c70161a608500de9e692d74a6df54dd6495059 Mon Sep 17 00:00:00 2001
From: Ken Gaillot <kgaillot@redhat.com>
Date: Mon, 8 May 2017 13:00:10 -0500
Subject: [PATCH] Refactor: libpe_status: ensure new fields are at end of
 struct

struct is internal, but better safe than sorry
---
 include/crm/pengine/status.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/crm/pengine/status.h b/include/crm/pengine/status.h
index 50940d4..e0297f9 100644
--- a/include/crm/pengine/status.h
+++ b/include/crm/pengine/status.h
@@ -132,7 +132,8 @@ typedef struct pe_working_set_s {
 struct node_shared_s {
     const char *id;
     const char *uname;
-/* Make all these flags into a bitfield one day */
+
+    /* @TODO convert these flags (and the ones at the end) into a bitfield */
     gboolean online;
     gboolean standby;
     gboolean standby_onfail;
@@ -142,7 +143,6 @@ struct node_shared_s {
     gboolean shutdown;
     gboolean expected_up;
     gboolean is_dc;
-    gboolean unpacked;
 
     int num_resources;
     GListPtr running_rsc;       /* resource_t* */
@@ -163,6 +163,7 @@ struct node_shared_s {
     gboolean remote_requires_reset;
     gboolean remote_was_fenced;
     gboolean remote_maintenance; /* what the remote-rsc is thinking */
+    gboolean unpacked;
 };
 
 struct node_s {
-- 
1.8.3.1