[Pacemaker] crm_simulate small bug

Dejan Muhamedagic dejanmm at fastmail.fm
Wed May 25 05:30:04 EDT 2011


Hi,

On Wed, May 25, 2011 at 05:43:05PM +0900, Yuusuke IIDA wrote:
> Hi, Andrew
> 
> I used crm_simulate and found a small bug.
> A return code of the operation that I appointed in "-i option "is not handed
> definitely.

Good catch! Applied.

Cheers,

Dejan

> Best Regards,
> Yuusuke IIDA
> 
> -- 
> ----------------------------------------
> METRO SYSTEMS CO., LTD
> 
> Yuusuke Iida
> Mail: iidayuus at intellilink.co.jp
> ----------------------------------------

> diff -r 0d3225be3f9d tools/crm_inject.c
> --- a/tools/crm_inject.c	Mon May 23 18:32:07 2011 +0200
> +++ b/tools/crm_inject.c	Wed May 25 17:33:34 2011 +0900
> @@ -793,7 +793,7 @@
>  	    cib_node = inject_node_state(global_cib, node);
>  	    CRM_ASSERT(cib_node != NULL);
>  	    
> -	    update_failcounts(cib_node, resource, interval, rc);
> +	    update_failcounts(cib_node, resource, interval, outcome);
>  	    
>  	    cib_resource = inject_resource(cib_node, resource, rclass, rtype, rprovider);
>  	    CRM_ASSERT(cib_resource != NULL);

> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker





More information about the Pacemaker mailing list