unpack_healthy_resource(GListPtr *node_constraints,			xmlNodePtr rsc_entry, resource_t *rsc_lh, node_t *node){	const char *last_op  = xmlGetProp(rsc_entry, "last_op");	rsc_to_node_t *new_cons = crm_malloc(sizeof(rsc_to_node_t));	new_cons->id		= "healthy_generate"; // genereate one	new_cons->weight	= 1.0;	new_cons->modifier	= inc;	new_cons->rsc_lh	= rsc_lh;	new_cons->node_list_rh	= g_list_append(NULL, node);		*node_constraints = g_list_append(*node_constraints, new_cons);		if(safe_str_neq(last_op, "stop")) {		if(rsc_lh->cur_node != NULL) {			crm_err("Resource %s running on multiple nodes %s, %s",				rsc_lh->id,				rsc_lh->cur_node->details->id,				node->details->id);			// TODO: some recovery action!!			// like force a stop on the first node?					} else {			/* we prefer to stay running here */			new_cons->weight = 100.0;						/* create the link between this node and the rsc */			crm_verbose("Setting cur_node = %s for rsc = %s",				    node->details->id, rsc_lh->id);						rsc_lh->cur_node = node;			node->details->running_rsc = g_list_append(				node->details->running_rsc, rsc_lh);		}			} else {		/* we prefer to start where we once ran successfully */		new_cons->weight = 20.0;	}	crm_debug_action(		print_rsc_to_node("Added", new_cons, FALSE));		return TRUE;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/a31099ff591feabcdecbed51debb86941e5029fa/unpack.c/clean/crm/pengine/unpack.c