[sheepdog] [PATCH] sheep: send only header on failure

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Sun Sep 9 04:51:01 CEST 2012


At Sat,  8 Sep 2012 18:44:58 +0900,
MORITA Kazutaka wrote:
> 
> We don't need to send useless data to client when a read request
> fails.
> 
> Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
> ---
>  sheep/ops.c     |    8 ++------
>  sheep/request.c |    5 +++++
>  2 files changed, 7 insertions(+), 6 deletions(-)

This doesn't work because local_stat_cluster needs to send data even
when the request result is not SD_RES_SUCCESS.  I'll send an updated
patch.

Thanks,

Kazutaka



More information about the sheepdog mailing list