]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: http_client: propagate send_data_hint differently
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 23 Jan 2019 23:41:44 +0000 (15:41 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 25 Jan 2019 23:45:57 +0000 (15:45 -0800)
commit8c5218f0f00c7a73dc9de851f1c1f1bbba4cdba7
treeb7279e6fbafdc9434699afed20943e4bfc505898
parent2bfe3969068791d91ea79d24cbb12eac51939b92
rgw: http_client: propagate send_data_hint differently

Fixes: http://tracker.ceph.com/issues/36092
send_data_hint is passed so that the lower http client layer
to know in in cases where it's an http request that usually doesn't
send data (e.g., GET) that the request will actually send data,
and initialize the curl client correctly. In a case that was
used by the elasticsearch mechanism it wasn't passed correctly.
Now made it a data member in RGWHTTPClient, which also cleans
the interface a bit.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_http_client.cc
src/rgw/rgw_http_client.h
src/rgw/rgw_rest_client.cc
src/rgw/rgw_rest_client.h