[sheepdog] [PATCH] sheep: let init_vdi_state() return correct value

Liu Yuan namei.unix at gmail.com
Tue Dec 17 07:37:43 CET 2013


On Mon, Dec 16, 2013 at 08:16:11PM +0900, Hitoshi Mitake wrote:
> Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
> ---
>  sheep/plain_store.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sheep/plain_store.c b/sheep/plain_store.c
> index 02db25e..f0e2c20 100644
> --- a/sheep/plain_store.c
> +++ b/sheep/plain_store.c
> @@ -221,7 +221,7 @@ static int init_vdi_state(uint64_t oid, const char *wd, uint32_t epoch)
>  	ret = SD_RES_SUCCESS;
>  out:
>  	free(inode);
> -	return SD_RES_SUCCESS;
> +	return ret;
>  }
>  
>  static int init_objlist_and_vdi_bitmap(uint64_t oid, const char *wd,

Applied thanks

Yuan



More information about the sheepdog mailing list