summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_op.cc
diff options
context:
space:
mode:
authorCasey Bodley <cbodley@users.noreply.github.com>2023-11-24 01:13:17 +0100
committerGitHub <noreply@github.com>2023-11-24 01:13:17 +0100
commite342927ec907b54ad572a0791929f83ee58cb6a4 (patch)
treedc017f420ed5939528f54762b2f17f8f8cee2e09 /src/rgw/rgw_op.cc
parentMerge pull request #50790 from jzhu116-bloomberg/wip-51772 (diff)
parentrgw: non-multipart uploads serve entire range on partNumber=1 (diff)
downloadceph-e342927ec907b54ad572a0791929f83ee58cb6a4.tar.xz
ceph-e342927ec907b54ad572a0791929f83ee58cb6a4.zip
Merge pull request #50148 from cbodley/wip-58750
rgw: Head/GetObject support partNumber Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Diffstat (limited to 'src/rgw/rgw_op.cc')
-rw-r--r--src/rgw/rgw_op.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc
index 5d56deaf220..6a7a7313e11 100644
--- a/src/rgw/rgw_op.cc
+++ b/src/rgw/rgw_op.cc
@@ -2281,6 +2281,9 @@ void RGWGetObj::execute(optional_yield y)
read_op->params.if_match = if_match;
read_op->params.if_nomatch = if_nomatch;
read_op->params.lastmod = &lastmod;
+ if (multipart_part_num) {
+ read_op->params.part_num = &*multipart_part_num;
+ }
op_ret = read_op->prepare(s->yield, this);
if (op_ret < 0)
@@ -2288,6 +2291,7 @@ void RGWGetObj::execute(optional_yield y)
version_id = s->object->get_instance();
s->obj_size = s->object->get_obj_size();
attrs = s->object->get_attrs();
+ multipart_parts_count = read_op->params.parts_count;
/* STAT ops don't need data, and do no i/o */
if (get_type() == RGW_OP_STAT_OBJ) {