File libdlm-pacemaker.patch of Package libdlm.openSUSE_12.3_Update
Index: group/dlm_controld/pacemaker.c
===================================================================
--- group/dlm_controld/pacemaker.c.orig
+++ group/dlm_controld/pacemaker.c
@@ -16,7 +16,7 @@
#undef SUPPORT_HEARTBEAT
#define SUPPORT_HEARTBEAT 0
#include <pacemaker/crm/common/cluster.h>
-#include <pacemaker/crm/common/stack.h>
+#include <pacemaker/crm/cluster/stack.h>
#include <pacemaker/crm/common/ipc.h>
#include <pacemaker/crm/msg_xml.h>
#include <pacemaker/crm/cib.h>
@@ -117,7 +117,7 @@ void dlm_process_node(gpointer key, gpoi
snprintf(path, PATH_MAX, "%s/%d", COMMS_DIR, node->id);
rc = stat(path, &tmp);
- is_active = crm_is_member_active(node);
+ is_active = crm_is_peer_active(node);
if(rc == 0 && is_active) {
/* nothing to do?
@@ -205,7 +205,7 @@ void dlm_process_node(gpointer key, gpoi
}
log_debug("%s %sctive node %u: born-on=%llu, last-seen=%llu, this-event=%llu, last-event=%llu",
- action, crm_is_member_active(value)?"a":"ina",
+ action, crm_is_peer_active(value)?"a":"ina",
node->id, node->born, node->last_seen,
crm_peer_seq, (unsigned long long)*last);
}
@@ -213,7 +213,7 @@ void dlm_process_node(gpointer key, gpoi
int is_cluster_member(uint32_t nodeid)
{
crm_node_t *node = crm_get_peer(nodeid, NULL);
- return crm_is_member_active(node);
+ return crm_is_peer_active(node);
}
char *nodeid2name(int nodeid) {