gboolean is_a_member = FALSE;
int join_id = -1; gboolean ack_nack_bool = TRUE;
do_dc_join_req(long long action,	       enum crmd_fsa_cause cause,	       enum crmd_fsa_state cur_state,	       enum crmd_fsa_input current_input,	       fsa_data_t *msg_data){	crm_data_t *generation = NULL;	gboolean is_a_member = FALSE;	const char *ack_nack = CRMD_JOINSTATE_MEMBER;	ha_msg_input_t *join_ack = fsa_typed_data(fsa_dt_ha_msg);	const char *join_from = cl_get_string(join_ack->msg,F_CRM_HOST_FROM);	const char *ref       = cl_get_string(join_ack->msg,XML_ATTR_REFERENCE);	gpointer join_node =		g_hash_table_lookup(fsa_membership_copy->members, join_from);	crm_devel("Processing req from %s", join_from);		if(join_node != NULL) {		is_a_member = TRUE;	}		generation = join_ack->xml;	crm_xml_debug(max_generation_xml, "Max generation");	crm_xml_debug(generation, "Their generation");	if(max_generation_xml == NULL) {		max_generation_xml = copy_xml_node_recursive(generation);		max_generation_from = crm_strdup(join_from);	} else if(cib_compare_generation(max_generation_xml, generation) < 0) {		crm_debug("%s has a better generation number than"			  " the current max %s",			  join_from, max_generation_from);		crm_free(max_generation_from);		free_xml(max_generation_xml);				max_generation_from = crm_strdup(join_from);		max_generation_xml = copy_xml_node_recursive(join_ack->xml);	}	crm_xml_debug(max_generation_xml, "Current max generation");		crm_debug("2) Welcoming node %s after ACK (ref %s)", join_from, ref);	/* add them to our list of CRMD_STATE_ACTIVE nodes */		if(/* some reason */ 0) {		/* NACK this client */		ack_nack = CRMD_JOINSTATE_DOWN;	}		g_hash_table_insert(		integrated_nodes, crm_strdup(join_from), crm_strdup(ack_nack));	crm_debug("%u nodes have been integrated",		  g_hash_table_size(integrated_nodes));		g_hash_table_remove(welcomed_nodes, join_from);	if(check_join_state(cur_state, __FUNCTION__) == FALSE) {		/* dont waste time by invoking the PE yet; */		crm_debug("Still waiting on %d outstanding join acks",			  g_hash_table_size(welcomed_nodes));	}	return I_NULL;}