All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sylvain Munaut <s.munaut@whatever-company.com>
To: Yehuda Sadeh <yehuda@redhat.com>
Cc: "ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: Re: RadosGW crashing on copy for one specific object
Date: Mon, 25 Aug 2014 11:00:46 +0200	[thread overview]
Message-ID: <CAF6-1L60V1HzCKv1FR_honU5QxYBVZx6gb9AUQrOL+H-N7wwSw@mail.gmail.com> (raw)
In-Reply-To: <CABBk=J8S_fkBMORDy9RbYLh6HWi+-EzyZefBNPmnBRWNuPOHAg@mail.gmail.com>

Hi Yehuda,


> diff --git a/src/rgw/rgw_rados.h b/src/rgw/rgw_rados.h
> index ed8f02d..0042df2 100644
> --- a/src/rgw/rgw_rados.h
> +++ b/src/rgw/rgw_rados.h
> @@ -306,6 +306,11 @@ public:
>
>    bool has_tail() {
>      if (explicit_objs) {
> +      if (objs.size() == 1) {
> +        map<uint64_t, RGWObjManifestPart>::iterator iter = objs.begin();
> +        rgw_obj& obj = iter->second.loc;
> +        return head_obj.object != obj.object;
> +      }
>        return (objs.size() >= 2);
>      }
>      return (obj_size > head_size);
>

I confirm that this fixes the issue.

I was able to copy the key and read the resulting copied key.


Cheers,

     Sylvain

      reply	other threads:[~2014-08-25  9:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-19 12:44 RadosGW crashing on copy for one specific object Sylvain Munaut
2014-08-19 17:44 ` Yehuda Sadeh
2014-08-20 13:47   ` Sylvain Munaut
2014-08-20 17:25     ` Yehuda Sadeh
2014-08-20 17:33       ` Yehuda Sadeh
2014-08-20 17:44         ` Yehuda Sadeh
2014-08-21  9:38           ` Sylvain Munaut
2014-08-21 20:39             ` Yehuda Sadeh
2014-08-25  9:00               ` Sylvain Munaut [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAF6-1L60V1HzCKv1FR_honU5QxYBVZx6gb9AUQrOL+H-N7wwSw@mail.gmail.com \
    --to=s.munaut@whatever-company.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=yehuda@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.