[sheepdog] [PATCH] sheep: set error result correctly in forward_write_obj

Liu Yuan namei.unix at gmail.com
Mon Jun 4 13:50:12 CEST 2012


On 06/04/2012 04:57 PM, MORITA Kazutaka wrote:

> Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
> ---
>  sheep/gateway.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/sheep/gateway.c b/sheep/gateway.c
> index d287d0c..c2ec901 100644
> --- a/sheep/gateway.c
> +++ b/sheep/gateway.c
> @@ -151,6 +151,7 @@ int forward_write_obj_req(struct request *req)
>  
>  		if (rsp->result != SD_RES_SUCCESS) {
>  			eprintf("fail %"PRIu32"\n", ret);
> +			ret = rsp->result;
>  			goto out;
>  		}
>  	}


Applied, thanks.

Yuan



More information about the sheepdog mailing list