]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/putobj: RadosWriter uses part head object for multipart parts 55622/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 14 Feb 2024 14:43:14 +0000 (09:43 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 16 Feb 2024 17:37:06 +0000 (12:37 -0500)
commit9f593afe58a10ed495102aae2ccd2b22bbf3be08
treece7820a45633111a83093ab2d770f1ccd370c3f0
parent8a2c6027394ab7f99c34805074b195484730c1a0
rgw/putobj: RadosWriter uses part head object for multipart parts

the cleanup logic in the RadosWrite destructor was using the wrong
`head_obj` to avoid races between cleanup and part re-uploads. it
pointed at the final location of the multipart upload, rather than the
head object of the current part

Fixes: https://tracker.ceph.com/issues/63642
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit bbbf5c54bdce3061ae9831c49fe065311a2e156d)

Conflicts: sal::Object instead of rgw_raw_obj
src/rgw/rgw_putobj_processor.cc
src/rgw/rgw_putobj_processor.h
src/rgw/rgw_putobj_processor.cc
src/rgw/rgw_putobj_processor.h