rsc, probe, NULL, rsc, NULL, delete, pe_ordering_optional, data_set); #else probe = NULL; #endif
rsc, NULL, delete, rsc, start, NULL, pe_ordering_manditory, data_set);
DeleteRsc(resource_t *rsc, node_t *node, pe_working_set_t *data_set){	action_t *delete = NULL;	action_t *refresh = NULL;	char *stop = stop_key(rsc);	char *start = start_key(rsc);	char *probe = NULL;	if(rsc->failed) {		crm_debug_2("Resource %s not deleted from %s: failed",			    rsc->name, node->details->uname);		return FALSE;			} else if(node == NULL		  || node->details->unclean		  || node->details->online == FALSE) {		crm_debug_2("Resource %s not deleted from %s: unrunnable",			    rsc->name, node->details->uname);		return FALSE;	}	crm_info("Removing %s from %s",		 rsc->name, node->details->uname);		delete = delete_action(rsc, node);		custom_action_order(		rsc, stop, NULL, rsc, NULL, delete,		pe_ordering_optional, data_set);#if 0	probe = generate_op_key(rsc->id, CRMD_ACTION_STATUS, 0);	custom_action_order(		rsc, probe, NULL, rsc, NULL, delete,		pe_ordering_optional, data_set);#else	probe = NULL;	#endif#if DELETE_THEN_REFRESH	refresh = custom_action(		NULL, crm_strdup(CRM_OP_LRM_REFRESH), CRM_OP_LRM_REFRESH,		node, FALSE, TRUE, data_set);	add_hash_param(refresh->extra, XML_ATTR_TE_NOWAIT, XML_BOOLEAN_TRUE);	custom_action_order(		rsc, NULL, delete, NULL, NULL, refresh, 		pe_ordering_optional, data_set);	custom_action_order(		rsc, NULL, refresh, rsc, start, NULL, 		pe_ordering_manditory, data_set);#else	refresh = NULL;	custom_action_order(		rsc, NULL, delete, rsc, start, NULL, 		pe_ordering_manditory, data_set);	#endif		return TRUE;}