crm_action_debug_3(print_resource("before update", rsc,TRUE));
print_resource(LOG_DEBUG_3, "before update", rsc,TRUE);
void native_rsc_location(resource_t *rsc, rsc_to_node_t *constraint){	GListPtr or_list;	crm_debug("Applying %s (%s) to %s", constraint->id,		  role2text(constraint->role_filter), rsc->id);	/* take "lifetime" into account */	if(constraint == NULL) {		pe_err("Constraint is NULL");		return;	} else if(rsc == NULL) {		pe_err("LHS of rsc_to_node (%s) is NULL", constraint->id);		return;	} else if(constraint->role_filter > 0		  && constraint->role_filter != rsc->next_role) {		crm_debug("Constraint (%s) is not active (role : %s)",			    constraint->id, role2text(constraint->role_filter));		return;			} else if(is_active(constraint) == FALSE) {		crm_debug_2("Constraint (%s) is not active", constraint->id);		return;	}    	if(constraint->node_list_rh == NULL) {		crm_debug_2("RHS of constraint %s is NULL", constraint->id);		return;	}	crm_action_debug_3(print_resource("before update", rsc,TRUE));	or_list = node_list_or(		rsc->allowed_nodes, constraint->node_list_rh, FALSE);			pe_free_shallow(rsc->allowed_nodes);	rsc->allowed_nodes = or_list;	slist_iter(node_rh, node_t, constraint->node_list_rh, lpc,		   native_update_node_weight(rsc, constraint, node_rh,					     rsc->allowed_nodes));	crm_action_debug_3(print_resource("after update", rsc, TRUE));}