[sheepdog] [PATCH] sheep: return NETWORK_ERROR when remove_object() fail to connect_to()
Liu Yuan
namei.unix at gmail.com
Thu May 31 18:13:56 CEST 2012
On 05/31/2012 08:50 PM, Liu Yuan wrote:
> From: Liu Yuan <tailai.ly at taobao.com>
>
>
> Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
> ---
> sheep/store.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sheep/store.c b/sheep/store.c
> index c1d3ab6..ad9883e 100644
> --- a/sheep/store.c
> +++ b/sheep/store.c
> @@ -637,7 +637,7 @@ int remove_object(struct vnode_info *vnodes, uint32_t epoch,
>
> fd = connect_to(name, v->port);
> if (fd < 0) {
> - rsp->result = SD_RES_EIO;
> + rsp->result = SD_RES_NETWORK_ERROR;
> return -1;
> }
>
Applied
Thanks,
Yuan
More information about the sheepdog
mailing list