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:
Yehuda Sadeh 2015-09-17 09:10:39 -07:00 committed by Radoslaw Zarzynski
parent 46c422f80c
commit 4a8b08d1dd

View File

@ -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;