if(safe_str_eq(op, CRM_OP_CIB_ISMASTER)) { if(cib_is_master == TRUE) { result = cib_ok; } else { result = cib_not_master; } return result; }
cib_process_readwrite(	const char *op, int options, const char *section, xmlNodePtr input,	xmlNodePtr *answer){	enum cib_errors result = cib_ok;	crm_debug("Processing \"%s\" event", op);	cib_pre_notify(op, NULL, NULL, NULL);	if(safe_str_eq(op, CRM_OP_CIB_MASTER)) {		crm_info("We are now in R/W mode");		cib_is_master = TRUE;	} else {		crm_info("We are now in R/O mode");		cib_is_master = FALSE;	}	cib_post_notify(op, NULL, NULL, NULL, result, NULL);	return result;}