]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix offset calculation in copy_obj_data 63794/head
authorSeena Fallah <seenafallah@gmail.com>
Tue, 25 Nov 2025 18:22:44 +0000 (19:22 +0100)
committerSeena Fallah <seenafallah@gmail.com>
Tue, 25 Nov 2025 18:22:49 +0000 (19:22 +0100)
commit16e477d2099044c4df5114877e18abb9d0172b8b
treea0705ca313bc3e9057eb626e5667f95e227d5f45
parente4d68354c9edd4e4e7f0f34fcfa478b230a4ab1a
rgw: fix offset calculation in copy_obj_data

Set ofs to total bytes read by adding 1 to end offset.
Since 'end' represents the last byte offset (zero-indexed),
we need to add 1 to get the actual number of bytes copied.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
src/rgw/driver/rados/rgw_rados.cc