mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-07-27 09:22:03 +00:00
Add function in exec/clm to get the full cluster node information
for any node in the cluster membership (Logical change 1.47) git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@146 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
02b4016105
commit
0385d9ba49
14
exec/clm.c
14
exec/clm.c
@ -71,6 +71,20 @@ int clusterNodeEntries = 0;
|
||||
|
||||
static DECLARE_LIST_INIT (library_notification_send_listhead);
|
||||
|
||||
SaClmClusterNodeT *clm_get_by_nodeid (struct in_addr node_id)
|
||||
{
|
||||
SaClmClusterNodeT *ret = NULL;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < clusterNodeEntries; i++) {
|
||||
if (clusterNodes[i].nodeId == node_id.s_addr) {
|
||||
ret = &clusterNodes[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
return (ret);
|
||||
}
|
||||
|
||||
/*
|
||||
* Service Interfaces required by service_message_handler struct
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user