[sheepdog] [PATCH v2 4/6] sheep/http: add flag for onode

Liu Yuan namei.unix at gmail.com
Tue Feb 25 07:29:12 CET 2014


On Tue, Feb 25, 2014 at 02:07:22PM +0800, Robin Dong wrote:
> From: Robin Dong <sanbai at taobao.com>
> 
> Add flag for onode, so we can identify which object is upload complete and
> which has been interrupted by client when uploading.
> 
> Signed-off-by: Robin Dong <sanbai at taobao.com>
> ---
>  include/sheepdog_proto.h |  1 +
>  sheep/http/kv.c          | 54 +++++++++++++++++++++++++++++++++++++++++++++---
>  sheep/http/swift.c       | 10 +++++++++
>  3 files changed, 62 insertions(+), 3 deletions(-)
> 
> diff --git a/include/sheepdog_proto.h b/include/sheepdog_proto.h
> index d553da9..17c727e 100644
> --- a/include/sheepdog_proto.h
> +++ b/include/sheepdog_proto.h
> @@ -74,6 +74,7 @@
>  #define SD_RES_JOIN_FAILED   0x18 /* Target node had failed to join sheepdog */
>  #define SD_RES_HALT          0x19 /* Sheepdog is stopped doing IO */
>  #define SD_RES_READONLY      0x1A /* Object is read-only */
> +#define SD_RES_INCOMPLETE    0x1B /* Object (in kv) is complete uploading */

comment complete -> incomplete

Thanks
Yuan



More information about the sheepdog mailing list