[sheepdog] [PATCH UPDATE] ops: refactor read_copy_from_replica()

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Tue Sep 11 11:06:01 CEST 2012


At Tue, 11 Sep 2012 14:54:02 +0800,
Liu Yuan wrote:
> 
> From: Liu Yuan <tailai.ly at taobao.com>
> 
> This function does competely the same as gateway_read_obj(), so we'd better
> directly call gateway_read_obj() by faking a request.
> 
> We didn't call it in the old code because a nasty nested requests problem over
> the same FD. Now with short thread and sockfd, we don't have this kind of
> problem.
> 
> Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
> ---
>  - zero out struct request read_req;
> 
>  sheep/ops.c |   94 ++++++++++-------------------------------------------------
>  1 file changed, 15 insertions(+), 79 deletions(-)

Applied, thanks!

Kazutaka



More information about the sheepdog mailing list