Re: RadosGW crashing on copy for one specific object

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,


> If by any chance you applied the previous patch, revert it, as it's
> wrong. This might fix the issue:
>
> diff --git a/src/rgw/rgw_rados.h b/src/rgw/rgw_rados.h
> index d50fb59..0f13590 100644
> --- a/src/rgw/rgw_rados.h
> +++ b/src/rgw/rgw_rados.h
> @@ -298,6 +298,9 @@ public:
>
>    bool has_tail() {
>      if (explicit_objs) {
> +      if (objs.size() == 1) {
> +        return head_obj != objs[0];
> +      }
>        return (objs.size() >= 2);
>      }
>      return (obj_size > head_size);
>
> Let me know if it works for you.

It doesn't build at all.

rgw/rgw_rados.h: In member function ‘bool RGWObjManifest::has_tail()’:
rgw/rgw_rados.h:302:34: error: no match for ‘operator!=’ in
‘((RGWObjManifest*)this)->RGWObjManifest::head_obj !=
((RGWObjManifest*)this)->RGWObjManifest::objs.std::map<_Key, _Tp,
_Compare, _Alloc>::operator[] [with _Key = long unsigned int, _Tp =
RGWObjManifestPart, _Compare = std::less<long unsigned int>, _Alloc =
std::allocator<std::pair<const long unsigned int, RGWObjManifestPart>
>, std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type =
RGWObjManifestPart, std::map<_Key, _Tp, _Compare, _Alloc>::key_type =
long unsigned int]((* &0u))’
...



Cheers,

   Sylvain
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux