set_xml_property_copy( the_cib, XML_ATTR_CCM_TRANSITION, ccm_transition_id); crm_debug("Set transition to %s", ccm_transition_id);
set_transition(the_cib);
initializeCib(crm_data_t *new_cib){#if 0	if(new_cib != NULL) {		crm_set_element_parent(new_cib, NULL);	}#endif	if (verifyCibXml(new_cib)) {		initialized = FALSE;		the_cib = new_cib;		/* update search paths */		/* not used yet...		node_search =			get_object_root(XML_CIB_TAG_NODES, new_cib);		resource_search =			get_object_root(XML_CIB_TAG_RESOURCES, new_cib);		constraint_search =			get_object_root(XML_CIB_TAG_CONSTRAINTS, new_cib);		status_search =			get_object_root(XML_CIB_TAG_STATUS, new_cib);		*/		initialized = TRUE;	}	if(initialized == FALSE) {		crm_warn("CIB Verification failed");		the_cib = NULL;	} else {		const char *option = "suppress_cib_writes";		const char *value = NULL;		crm_data_t *config = get_object_root(			XML_CIB_TAG_CRMCONFIG, new_cib);				crm_data_t * a_default = find_entity(			config, XML_CIB_TAG_NVPAIR, option);		if(a_default != NULL) {			value = crm_element_value(				a_default, XML_NVPAIR_ATTR_VALUE);		}		cib_writes_enabled = TRUE;		if(value == NULL) {			crm_warn("Option %s not set", option);		} else {			crm_str_to_boolean(value, &cib_writes_enabled);		}		if(cib_writes_enabled) {			crm_debug("CIB disk writes to %s enabled", CIB_FILENAME);		} else {			crm_notice("Disabling CIB disk writes");		}		set_connected_peers(the_cib);		set_xml_property_copy(			the_cib, XML_ATTR_CCM_TRANSITION, ccm_transition_id);		crm_debug("Set transition to %s", ccm_transition_id);		if(cib_have_quorum) {			set_xml_property_copy(				the_cib,XML_ATTR_HAVE_QUORUM,XML_BOOLEAN_TRUE);		} else {			set_xml_property_copy(				the_cib,XML_ATTR_HAVE_QUORUM,XML_BOOLEAN_FALSE);		}			}	return initialized;}