[Pacemaker] [PATCH]A redundant if sentence.

renayama19661014 at ybb.ne.jp renayama19661014 at ybb.ne.jp
Tue Aug 3 21:47:50 EDT 2010


Hi, 

It is the patch of a redundant if sentence for pengine.

void
unpack_operation(
	action_t *action, xmlNode *xml_obj, pe_working_set_t* data_set)
{
(snip)
	if(safe_str_eq(class, "stonith")) {
		action->needs = rsc_req_nothing;
		value = "nothing (fencing op)";

	} else if(value == NULL && safe_str_neq(action->task, CRMD_ACTION_START)) {
(snip)		
	} else if(data_set->no_quorum_policy == no_quorum_ignore
	    || safe_str_eq(class, "stonith")) { *** ---> A redundant if sentence. 
		action->needs = rsc_req_nothing;
		value = "nothing (default)";
		
	} else if(data_set->no_quorum_policy == no_quorum_freeze
		  && is_set(data_set->flags, pe_flag_stonith_enabled)) {
(snip)

Best Regards,
Hideo Yamauchi.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: redundant_if_sentence.patch
Type: application/octet-stream
Size: 495 bytes
Desc: 205491641-redundant_if_sentence.patch
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100804/5ac62dd7/attachment-0002.obj>


More information about the Pacemaker mailing list