On Mon, Jul 14, 2014 at 9:40 PM, Hitoshi Mitake
<[email protected]> wrote:
> From: Hitoshi Mitake <[email protected]>
>
> Signed-off-by: Hitoshi Mitake <[email protected]>
> ---
>  sheep/sheep_priv.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Valerio, could you test this patch for the regression problem of
erasure coding? If the combination of EC and sparse object has
problems, this patch would be able to solve it.

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
>
-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to