[sheepdog] [PATCH] sheep: fix compare statement in sd_check_join_cb

Liu Yuan namei.unix at gmail.com
Mon Jul 23 11:10:58 CEST 2012


On 07/23/2012 04:54 PM, Yunkai Zhang wrote:
> From: Yunkai Zhang <qiushu.zyk at taobao.com>
> 
> 
> Signed-off-by: Yunkai Zhang <qiushu.zyk at taobao.com>
> ---
>  sheep/group.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sheep/group.c b/sheep/group.c
> index 87e5663..3c0fe9b 100644
> --- a/sheep/group.c
> +++ b/sheep/group.c
> @@ -938,7 +938,7 @@ enum cluster_join_result sd_check_join_cb(struct sd_node *joining, void *opaque)
>  		strcpy((char *)jm->store, sd_store->name);
>  
>  	if (jm->cluster_status != SD_STATUS_OK &&
> -	    (ret == CJ_RES_SUCCESS || CJ_RES_JOIN_LATER))
> +	    (ret == CJ_RES_SUCCESS || ret == CJ_RES_JOIN_LATER))
>  		format_exceptional_node_list(jm);
>  	return ret;
>  }
> 

Applied, thanks.

Yuan



More information about the sheepdog mailing list