]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix cloud tier multipart resume starting at part number 0 68324/head
authorMatthew N. Heler <matthew.heler@hotmail.com>
Wed, 8 Apr 2026 23:16:18 +0000 (18:16 -0500)
committerMatthew N. Heler <matthew.heler@hotmail.com>
Mon, 20 Apr 2026 14:41:16 +0000 (09:41 -0500)
commit04741d381b6c47ac2e06e644c33b1aa58e4a12ac
tree86c2e48017f15aea93d5f2b71e354dcd8e0390e8
parent4cdd13f7a0bb23eb93bb974cafa92bda838b2406
rgw: fix cloud tier multipart resume starting at part number 0

When resuming a cloud tier multipart upload, the part-size
calculation was inside the fresh-init block and never executed.
cur_part, num_parts, and part_size stayed at 0, causing the
remote endpoint to reject part number 0 as invalid.

Move the part-size calculation out of the init block so it
runs for both fresh and resumed uploads.

Signed-off-by: Matthew N. Heler <matthew.heler@hotmail.com>
src/rgw/driver/rados/rgw_lc_tier.cc