[sheepdog] [PATCH RFT] sheep: let only ledger objects be sparse ones
Hitoshi Mitake
mitake.hitoshi at gmail.com
Mon Jul 14 14:42:37 CEST 2014
On Mon, Jul 14, 2014 at 9:40 PM, Hitoshi Mitake
<mitake.hitoshi at gmail.com> 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(-)
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
>
More information about the sheepdog
mailing list