File pacemaker-attrd-cache-connection-flags.patch of Package pacemaker.3577
commit e3e1b7562289cdffca707753ca56336649e24f16
Author: Ken Gaillot <kgaillot@redhat.com>
Date: Wed Dec 23 10:34:27 2015 -0600
Low: libcrmcommon: when caching attrd connection, cache connection flags as well
diff --git a/lib/common/utils.c b/lib/common/utils.c
index 7b42b89..e08dbaf 100644
--- a/lib/common/utils.c
+++ b/lib/common/utils.c
@@ -1747,11 +1747,11 @@ attrd_update_delegate(crm_ipc_t * ipc, char command, const char *host, const cha
{
int rc = -ENOTCONN;
int max = 5;
- enum crm_ipc_flags flags = crm_ipc_flags_none;
xmlNode *update = create_xml_node(NULL, __FUNCTION__);
static gboolean connected = TRUE;
static crm_ipc_t *local_ipc = NULL;
+ static enum crm_ipc_flags flags = crm_ipc_flags_none;
if (ipc == NULL && local_ipc == NULL) {
local_ipc = crm_ipc_new(T_ATTRD, 0);