mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
rgw: don't read actual data on user manifest HEAD
Fixes: #12780 We unconditionally read all the data, which is not needed when doing HEAD operation on user manifest objects. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com> Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
This commit is contained in:
parent
46c422f80c
commit
4a8b08d1dd
@ -845,6 +845,12 @@ int RGWGetObj::handle_user_manifest(const char *prefix)
|
||||
|
||||
s->obj_size = total_len;
|
||||
|
||||
if (!get_data) {
|
||||
bufferlist bl;
|
||||
send_response_data(bl, 0, 0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
r = iterate_user_manifest_parts(s->cct, store, ofs, end, bucket, obj_prefix, bucket_policy, NULL, get_obj_user_manifest_iterate_cb, (void *)this);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
Loading…
Reference in New Issue
Block a user