[sheepdog] [PATCH v3 09/13] sheep: add 'cluster reweight' support

MORITA Kazutaka morita.kazutaka at gmail.com
Mon May 27 14:33:21 CEST 2013


At Mon, 27 May 2013 19:36:12 +0800,
Liu Yuan wrote:
> 
> diff --git a/sheep/plain_store.c b/sheep/plain_store.c
> index 086e18e..678bf49 100644
> --- a/sheep/plain_store.c
> +++ b/sheep/plain_store.c
> @@ -272,8 +272,10 @@ int default_read(uint64_t oid, const struct siocb *iocb)
>  	/*
>  	 * If the request is againt the older epoch, try to read from
>  	 * the stale directory
> +	 *
> +	 * For reweighting, iocb->epoch == sys_epoch().
>  	 */
> -	if (ret == SD_RES_NO_OBJ && iocb->epoch < sys_epoch()) {
> +	if (ret == SD_RES_NO_OBJ && iocb->epoch <= sys_epoch()) {
>  		get_stale_obj_path(oid, iocb->epoch, path);
>  		ret = default_read_from_path(oid, path, iocb);
>  	}

This change looks no longer necessary.

Thanks,

Kazutaka



More information about the sheepdog mailing list