[sheepdog] [PATCH 1/2] sheep: introduce strict mode for write
Robin Dong
robin.k.dong at gmail.com
Wed Dec 11 04:32:32 CET 2013
2013/12/11 Liu Yuan <namei.unix at gmail.com>
> On Wed, Dec 11, 2013 at 10:59:27AM +0800, Robin Dong wrote:
> > Why not adding the check in gateway_forward_request() ? I think we should
> > check the copy number before send forward the request out.
>
> I think it is better to check the request as early as possible, no? This is
> pointless to run the request down to gateway_forward_request(), which is
> queued
> on the work queue and might need some time to be called and then return the
> error to the client.
>
> What is the benefit to check inside the gateway_forward_request instead of
> the
> approch of this patch?
>
Sorry,I misunderstand the gateway_forward_request() and
queue_gateway_request(),your code is correct.
Reviewed-by: Robin Dong <sanbai at taobao.com>
> Thanks
> Yuan
>
--
--
Best Regard
Robin Dong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20131211/a4672e07/attachment-0004.html>
More information about the sheepdog
mailing list