crm_debug("Retrieving current CIB from %s", host);
crm_devel("Retrieving current CIB from %s", host);
int cib_client_sync_from(	cib_t *cib, const char *host, const char *section, int call_options){	enum cib_errors rc = cib_ok;	crm_data_t *stored_cib  = NULL;	crm_data_t *current_cib = NULL;	if(cib == NULL) {		return cib_missing;	} else if(cib->state == cib_disconnected) {		return cib_not_connected;	} else if(cib->cmds->variant_op == NULL) {		return cib_variant;	}	crm_debug("Retrieving current CIB from %s", host);	rc = cib->cmds->query_from(		cib, host, section, &current_cib, call_options|cib_sync_call);	if(current_cib == NULL) {		crm_err("Could not retrive current CIB.");			} else if(rc == cib_ok) {		if(call_options & cib_scope_local) {			/* having scope == local makes no sense from here on */			call_options ^= cib_scope_local;		}				crm_debug("Storing current CIB (should trigger a store everywhere)");/* 		crm_xml_debug(current_cib, "XML to store"); */		rc = cib->cmds->replace(			cib, section, current_cib, &stored_cib, call_options);	}	free_xml(current_cib);	free_xml(stored_cib);		return rc;	}