 set_uuid(fsa_cluster_conn, cib, XML_ATTR_DC_UUID, fsa_our_uname); crm_debug_3("Update %s in the CIB to our uuid: %s", XML_ATTR_DC_UUID, crm_element_value(cib, XML_ATTR_DC_UUID)); 
do_dc_takeover(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 *cib = createEmptyCib();	crm_data_t *update = NULL;	crm_data_t *output = NULL;	int rc = cib_ok;		crm_info("Taking over DC status for this partition");	set_bit_inplace(fsa_input_register, R_THE_DC);	crm_free(fsa_our_dc);	fsa_our_dc = crm_strdup(fsa_our_uname);	set_bit_inplace(fsa_input_register, R_JOIN_OK);	set_bit_inplace(fsa_input_register, R_INVOKE_PE);		if(dc_heartbeat->source_id == (guint)-1	   || dc_heartbeat->source_id == (guint)-2) {		crm_debug_3("Starting DC Heartbeat timer");		dc_heartbeat->source_id = Gmain_timeout_add_full(			G_PRIORITY_HIGH, dc_heartbeat->period_ms,			dc_heartbeat->callback, dc_heartbeat, NULL);	} else {		crm_debug_3("DC Heartbeat timer already active");	}	/* 	fsa_cib_conn->cmds->set_slave_all(fsa_cib_conn, cib_none); */	fsa_cib_conn->cmds->set_master(fsa_cib_conn, cib_none);	set_uuid(fsa_cluster_conn, cib, XML_ATTR_DC_UUID, fsa_our_uname);	crm_debug_3("Update %s in the CIB to our uuid: %s",		  XML_ATTR_DC_UUID, crm_element_value(cib, XML_ATTR_DC_UUID));		update = create_cib_fragment(cib, NULL);	free_xml(cib);	rc = fsa_cib_conn->cmds->modify(		fsa_cib_conn, NULL, update, &output, cib_quorum_override);	free_xml(update);		if(rc == cib_revision_unsupported) {		crm_err("Feature revision not permitted");		/* go into a stall state */		register_fsa_error(C_FSA_INTERNAL, I_HALT, NULL);		return I_NULL;			} else 	if(rc < cib_ok) {		crm_err("DC UUID update failed: %s", cib_error2string(rc));		register_fsa_error(C_FSA_INTERNAL, I_FAIL, NULL);		return I_NULL;	}	rc = fsa_cib_conn->cmds->query(		fsa_cib_conn, NULL, NULL, cib_scope_local);		if(FALSE == add_cib_op_callback(		   rc, TRUE, NULL, revision_check_callback)) {		crm_err("Retrieval of generation failed");		register_fsa_error(C_FSA_INTERNAL, I_FAIL, NULL);		return I_NULL;	}			crm_debug_3("Requesting an initial dump of CRMD client_status");	fsa_cluster_conn->llc_ops->client_status(		fsa_cluster_conn, NULL, CRM_SYSTEM_CRMD, -1);		return I_NULL;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/133dc1002fdeba44fc763111867cb2e026415786/election.c/clean/crm/crmd/election.c