[Debian-ha-commits] [pacemaker] 18/69: Low: libcrmcommon: when caching attrd connection, cache connection flags as well

Christoph Berg myon at debian.org
Tue Jan 26 09:14:25 UTC 2016


This is an automated email from the git hooks/post-receive script.

myon pushed a commit to branch debian/master
in repository pacemaker.

commit e3e1b7562289cdffca707753ca56336649e24f16
Author: Ken Gaillot <kgaillot at redhat.com>
Date:   Wed Dec 23 10:34:27 2015 -0600

    Low: libcrmcommon: when caching attrd connection, cache connection flags as well
---
 lib/common/utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/pacemaker.git



More information about the Debian-HA-Commits mailing list