]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerCasey Bodley <cbodley@redhat.com>
Tue, 30 Jul 2024 17:27:03 +0000 (13:27 -0400)
commita43b9f4c76be50589217c2bd6cae6073adb7bc13
tree407bb7dbba5a6a4619d06ebcd808104737edc382
parentc36680e60ad0de554d844f269f483e57810af041
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>
(cherry picked from commit 111c54a19dc12b84cda785feddb0a0ba483b1f77)
src/rgw/driver/rados/rgw_rados.cc
src/rgw/driver/rados/rgw_rados.h
src/rgw/driver/rados/rgw_sal_rados.cc