summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_rest_client.h
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2019-07-07 06:40:52 +0200
committerKefu Chai <kchai@redhat.com>2019-08-03 05:27:19 +0200
commit02292616a320753f638c9fa62b6b714126af4012 (patch)
tree3a3e11f10a362eba4d41ea6122eb3fd4cf442820 /src/rgw/rgw_rest_client.h
parentlibrbd: s/Mutex/ceph::mutex/ (diff)
downloadceph-02292616a320753f638c9fa62b6b714126af4012.tar.xz
ceph-02292616a320753f638c9fa62b6b714126af4012.zip
rgw: s/Mutex/ceph::mutex/
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/rgw/rgw_rest_client.h')
-rw-r--r--src/rgw/rgw_rest_client.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/rgw/rgw_rest_client.h b/src/rgw/rgw_rest_client.h
index 8f9b2c16f54..d02e3052bf5 100644
--- a/src/rgw/rgw_rest_client.h
+++ b/src/rgw/rgw_rest_client.h
@@ -100,8 +100,10 @@ public:
class ReceiveCB;
private:
- Mutex lock;
- Mutex write_lock;
+ ceph::mutex lock =
+ ceph::make_mutex("RGWHTTPStreamRWRequest");
+ ceph::mutex write_lock =
+ ceph::make_mutex("RGWHTTPStreamRWRequest::write_lock");
ReceiveCB *cb{nullptr};
RGWWriteDrainCB *write_drain_cb{nullptr};
bufferlist outbl;
@@ -132,12 +134,11 @@ public:
};
RGWHTTPStreamRWRequest(CephContext *_cct, const string& _method, const string& _url,
- param_vec_t *_headers, param_vec_t *_params) : RGWHTTPSimpleRequest(_cct, _method, _url, _headers, _params),
- lock("RGWHTTPStreamRWRequest"), write_lock("RGWHTTPStreamRWRequest::write_lock") {
+ param_vec_t *_headers, param_vec_t *_params) : RGWHTTPSimpleRequest(_cct, _method, _url, _headers, _params) {
}
RGWHTTPStreamRWRequest(CephContext *_cct, const string& _method, const string& _url, ReceiveCB *_cb,
param_vec_t *_headers, param_vec_t *_params) : RGWHTTPSimpleRequest(_cct, _method, _url, _headers, _params),
- lock("RGWHTTPStreamRWRequest"), write_lock("RGWHTTPStreamRWRequest::write_lock"), cb(_cb) {
+ cb(_cb) {
}
virtual ~RGWHTTPStreamRWRequest() override {}