diff options
author | liuchang0812 <liuchang0812@gmail.com> | 2017-02-22 10:46:46 +0100 |
---|---|---|
committer | liuchang0812 <liuchang0812@gmail.com> | 2017-03-14 05:09:29 +0100 |
commit | 3b247475a2c35526c129535021adfa621ecb5327 (patch) | |
tree | d999be60d9eaa6b31dcaec5ec3a508ece3fb0bf5 /src/rgw/rgw_rest_client.h | |
parent | Merge pull request #13805 from tchaikov/wip-qa-upgrade-tiering (diff) | |
download | ceph-3b247475a2c35526c129535021adfa621ecb5327.tar.xz ceph-3b247475a2c35526c129535021adfa621ecb5327.zip |
rgw/cleanup: add override in headers
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
Diffstat (limited to 'src/rgw/rgw_rest_client.h')
-rw-r--r-- | src/rgw/rgw_rest_client.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/rgw/rgw_rest_client.h b/src/rgw/rgw_rest_client.h index 709e83b8cc9..e09bb2fd57b 100644 --- a/src/rgw/rgw_rest_client.h +++ b/src/rgw/rgw_rest_client.h @@ -47,9 +47,9 @@ public: params = *_params; } - int receive_header(void *ptr, size_t len); - virtual int receive_data(void *ptr, size_t len); - virtual int send_data(void *ptr, size_t len); + int receive_header(void *ptr, size_t len) override; + int receive_data(void *ptr, size_t len) override; + int send_data(void *ptr, size_t len) override; bufferlist& get_response() { return response; } @@ -70,12 +70,12 @@ class RGWRESTStreamWriteRequest : public RGWRESTSimpleRequest { RGWHTTPManager http_manager; public: int add_output_data(bufferlist& bl); - int send_data(void *ptr, size_t len); + int send_data(void *ptr, size_t len) override; RGWRESTStreamWriteRequest(CephContext *_cct, const string& _url, param_vec_t *_headers, param_vec_t *_params) : RGWRESTSimpleRequest(_cct, _url, _headers, _params), lock("RGWRESTStreamWriteRequest"), cb(NULL), http_manager(_cct) {} - ~RGWRESTStreamWriteRequest(); + ~RGWRESTStreamWriteRequest() override; int put_obj_init(RGWAccessKey& key, rgw_obj& obj, uint64_t obj_size, map<string, bufferlist>& attrs); int complete(string& etag, real_time *mtime); @@ -93,17 +93,17 @@ class RGWRESTStreamRWRequest : public RGWRESTSimpleRequest { const char *method; uint64_t write_ofs; protected: - int handle_header(const string& name, const string& val); + int handle_header(const string& name, const string& val) override; public: - int send_data(void *ptr, size_t len); - int receive_data(void *ptr, size_t len); + int send_data(void *ptr, size_t len) override; + int receive_data(void *ptr, size_t len) override; RGWRESTStreamRWRequest(CephContext *_cct, const char *_method, const string& _url, RGWGetDataCB *_cb, param_vec_t *_headers, param_vec_t *_params) : RGWRESTSimpleRequest(_cct, _url, _headers, _params), lock("RGWRESTStreamReadRequest"), cb(_cb), chunk_ofs(0), ofs(0), http_manager(_cct), method(_method), write_ofs(0) { } - virtual ~RGWRESTStreamRWRequest() {} + ~RGWRESTStreamRWRequest() override {} int get_obj(RGWAccessKey& key, map<string, string>& extra_headers, rgw_obj& obj); int get_resource(RGWAccessKey& key, map<string, string>& extra_headers, const string& resource, RGWHTTPManager *mgr = NULL); int complete(string& etag, real_time *mtime, uint64_t *psize, map<string, string>& attrs); |