]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
RGW - Fix copy_obj handling of obj_ctx
authorDaniel Gryniewicz <dang@fprintf.net>
Thu, 27 Jun 2024 16:40:38 +0000 (12:40 -0400)
committerGabriel BenHanokh <gbenhano@redhat.com>
Mon, 15 Jul 2024 06:56:47 +0000 (06:56 +0000)
commit111c54a19dc12b84cda785feddb0a0ba483b1f77
tree92b5cdfadd87c5c77bbfc682480f5e6f5d6916bd
parentd496d20c803590d41d711e446feab41476c0f20c
RGW - Fix copy_obj handling of obj_ctx

Fixes: https://tracker.ceph.com/issues/66286
(Line added by Gabriel)

In RadosStore, the source and dest objects in the copy_object() call
used to share an obj_ctx.  When obj_ctx was removed from the SAL API,
they each got their own, but RGWRados::copy_obj() still assumed they
shared one.

Pass in each one separately, and use the correct one for further calls.

Signed-off-by: Daniel Gryniewicz <dang@fprintf.net>
Signed-off-by: Gabriel BenHanokh <gbenhano@redhat.com>
src/rgw/driver/rados/rgw_rados.cc
src/rgw/driver/rados/rgw_rados.h
src/rgw/driver/rados/rgw_sal_rados.cc