Message ID | CABBk=J8S_fkBMORDy9RbYLh6HWi+-EzyZefBNPmnBRWNuPOHAg@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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);