[sheepdog] [PATCH] sheep: remove the force flag from SD_OP_GET_NODE_LIST

Liu Yuan namei.unix at gmail.com
Thu May 31 18:18:48 CEST 2012


On 06/01/2012 12:11 AM, Christoph Hellwig wrote:

> Getting the node list when a sheep isn't fully up can trigger an assert in
> get_vnode_info.  Given that there is very little use in getting the node
> list from a cluster that isn't operational yet simply remove the force flag.
> 
> Signed-off-by: Christoph Hellwig <hch at lst.de>
> 
> diff --git a/sheep/ops.c b/sheep/ops.c
> index 84ebcc8..94a20cc 100644
> --- a/sheep/ops.c
> +++ b/sheep/ops.c
> @@ -824,7 +824,6 @@ static struct sd_op_template sd_ops[] = {
>  
>  	[SD_OP_GET_NODE_LIST] = {
>  		.type = SD_OP_TYPE_LOCAL,
> -		.force = 1,
>  		.process_main = local_get_node_list,
>  	},
>  


Applied, thanks.

Yuan



More information about the sheepdog mailing list