CRM_DEBUG2("Uname: %s", oc->m_array[offset+lpc].node_uname);
do_ccm_update_cache(long long action,		    enum crmd_fsa_state cur_state,		    enum crmd_fsa_input current_input,		    void *data){	int lpc, offset;	oc_node_t *members = NULL;	oc_ed_t event = *((struct ccm_data *)data)->event;	const oc_ev_membership_t *oc = ((struct ccm_data *)data)->oc;	oc_node_list_t *tmp = NULL, *membership_copy = (oc_node_list_t *)		ha_malloc(sizeof(oc_node_list_t));	FNIN();	cl_log(LOG_INFO,"Updating CCM cache after a \"%s\" event.", 	       event==OC_EV_MS_NEW_MEMBERSHIP?"NEW MEMBERSHIP":	       event==OC_EV_MS_NOT_PRIMARY?"NOT PRIMARY":	       event==OC_EV_MS_PRIMARY_RESTORED?"PRIMARY RESTORED":	       event==OC_EV_MS_EVICTED?"EVICTED":	       "NO QUORUM MEMBERSHIP");	if(CCM_EVENT_DETAIL) {		ccm_event_detail(oc, event);	}	/*--*-- All Member Nodes --*--*/	offset = oc->m_memb_idx;	membership_copy->members_size = oc->m_n_member;	CRM_DEBUG2("Number of members: %d", membership_copy->members_size);		if(membership_copy->members_size > 0) {		int size = membership_copy->members_size;		size = size * sizeof(oc_node_t);		CRM_DEBUG2("Allocing %d", size);		membership_copy->members = (oc_node_t *)ha_malloc(size);		members = membership_copy->members;				for(lpc=0; lpc < membership_copy->members_size; lpc++) {			members[lpc].node_id =				oc->m_array[offset+lpc].node_id;						members[lpc].node_born_on =				oc->m_array[offset+lpc].node_born_on;			#ifdef CCM_UNAME			members[lpc].node_uname =				ha_strdup(oc->m_array[offset+lpc].node_uname);#endif			}	}		/*--*-- New Member Nodes --*--*/	offset = oc->m_n_in;	membership_copy->new_members_size = oc->m_n_in;	CRM_DEBUG2("Number of new members: %d", membership_copy->new_members_size);	if(membership_copy->new_members_size > 0) {		int size = membership_copy->new_members_size;		size = size * sizeof(oc_node_t);		CRM_DEBUG2("Allocing %d", size);				membership_copy->new_members = (oc_node_t *)ha_malloc(size);				members = membership_copy->new_members;				for(lpc=0; lpc < membership_copy->new_members_size; lpc++) {			members[lpc].node_id =				oc->m_array[offset+lpc].node_id;						members[lpc].node_born_on =				oc->m_array[offset+lpc].node_born_on;			#ifdef CCM_UNAME			members[lpc].node_uname =				ha_strdup(oc->m_array[offset+lpc].node_uname);#endif						}	}		/*--*-- Recently Dead Member Nodes --*--*/	offset = oc->m_n_out;	membership_copy->dead_members_size = oc->m_n_out;	if(membership_copy->dead_members_size > 0) {		int size = membership_copy->dead_members_size;		size = size * sizeof(oc_node_t);		membership_copy->dead_members = (oc_node_t *)ha_malloc(size);				members = membership_copy->new_members;				for(lpc=0; lpc < membership_copy->dead_members_size; lpc++) {			members[lpc].node_id =				oc->m_array[offset+lpc].node_id;						members[lpc].node_born_on =				oc->m_array[offset+lpc].node_born_on;			#ifdef CCM_UNAME			members[lpc].node_uname =				ha_strdup(oc->m_array[offset+lpc].node_uname);#endif					}	}		tmp = fsa_membership_copy;	fsa_membership_copy = membership_copy;	/* Free the old copy */	if(tmp != NULL) {		if(tmp->members != NULL)			ha_free(tmp->members);		if(tmp->new_members != NULL)			ha_free(tmp->new_members);		if(tmp->dead_members != NULL)			ha_free(tmp->dead_members);		ha_free(tmp);	}		FNRET(I_NULL);}