crm_verbose("Constraint %s: node %s weight %s %f.", cons->id, node_rh->details->id, modifier2text(cons->modifier), node_rh->weight);  switch(cons->modifier) { case set: node_rh->weight = cons->weight; node_rh->fixed = TRUE; break; case inc: node_rh->weight += cons->weight; break; case dec: node_rh->weight -= cons->weight; break; case only: case modifier_none: crm_err("Should not be here"); break;
crm_verbose("Constraint %s (%s): node %s weight %f.", cons->id, cons->can?"can":"cannot", node_rh->details->id, node_rh->weight);  if(cons->can == FALSE) { node_rh->weight = -1; } else { node_rh->weight += cons->weight;
update_node_weight(rsc_to_node_t *cons, const char *id, GListPtr nodes){	node_t *node_rh = pe_find_node(cons->rsc_lh->allowed_nodes, id);	if(node_rh == NULL) {		node_t *node_tmp = pe_find_node(nodes, id);		node_rh = node_copy(node_tmp);		cons->rsc_lh->allowed_nodes =			g_list_append(cons->rsc_lh->allowed_nodes, node_rh);	}	if(node_rh == NULL) {		// error		return FALSE;	}	if(node_rh->fixed) {		// warning		crm_warn("Constraint %s is irrelevant as the"			 " weight of node %s is fixed as %f.",			 cons->id,			 node_rh->details->id,			 node_rh->weight);		return TRUE;	}		crm_verbose("Constraint %s: node %s weight %s %f.",		      cons->id,		      node_rh->details->id,		      modifier2text(cons->modifier),		      node_rh->weight);		switch(cons->modifier) {		case set:			node_rh->weight = cons->weight;			node_rh->fixed = TRUE;			break;		case inc:			node_rh->weight += cons->weight;			break;		case dec:			node_rh->weight -= cons->weight;			break;		case only:		case modifier_none:			crm_err("Should not be here");			break;	}	return TRUE;}