[sheepdog] [PATCH RFT] sheep: let only ledger objects be sparse ones

Hitoshi Mitake mitake.hitoshi at lab.ntt.co.jp
Tue Jul 22 08:36:10 CEST 2014


At Mon, 14 Jul 2014 21:40:06 +0900,
Hitoshi Mitake wrote:
> 
> From: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
> 
> Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
> ---
>  sheep/sheep_priv.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied.

Thanks,
Hitoshi

> 
> diff --git a/sheep/sheep_priv.h b/sheep/sheep_priv.h
> index 7b33f11..3fb9fe7 100644
> --- a/sheep/sheep_priv.h
> +++ b/sheep/sheep_priv.h
> @@ -479,7 +479,7 @@ static inline bool node_is_local(const struct sd_node *n)
>   */
>  static inline bool is_sparse_object(uint64_t oid)
>  {
> -	return !is_data_obj(oid) || oid_is_readonly(oid);
> +	return is_ledger_object(oid);
>  }
>  
>  /* gateway operations */
> -- 
> 1.9.1
> 



More information about the sheepdog mailing list