diff options
author | liuchang0812 <liuchang0812@gmail.com> | 2017-02-22 12:45:41 +0100 |
---|---|---|
committer | liuchang0812 <liuchang0812@gmail.com> | 2017-03-03 12:15:56 +0100 |
commit | ab9f6cea59bfae234ca45159079087403eb2ed43 (patch) | |
tree | e7bbaa6b2318ddf223ebec7bb1ff65b0dbf1ac2d /src/messages/MOSDRepOp.h | |
parent | Merge pull request #13762 from Liuchang0812/wip-remove-unnecessary-code-in-mon (diff) | |
download | ceph-ab9f6cea59bfae234ca45159079087403eb2ed43.tar.xz ceph-ab9f6cea59bfae234ca45159079087403eb2ed43.zip |
common: add override in msg subsystem
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
Diffstat (limited to 'src/messages/MOSDRepOp.h')
-rw-r--r-- | src/messages/MOSDRepOp.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/messages/MOSDRepOp.h b/src/messages/MOSDRepOp.h index de5e4755697..e4a4ef8d009 100644 --- a/src/messages/MOSDRepOp.h +++ b/src/messages/MOSDRepOp.h @@ -70,11 +70,11 @@ public: return pgid; } - int get_cost() const { + int get_cost() const override { return data.length(); } - virtual void decode_payload() { + void decode_payload() override { p = payload.begin(); // splitted to partial and final ::decode(map_epoch, p); @@ -103,7 +103,7 @@ public: final_decode_needed = false; } - virtual void encode_payload(uint64_t features) { + void encode_payload(uint64_t features) override { ::encode(map_epoch, payload); ::encode(reqid, payload); ::encode(pgid, payload); @@ -140,11 +140,11 @@ public: set_tid(rtid); } private: - ~MOSDRepOp() {} + ~MOSDRepOp() override {} public: - const char *get_type_name() const { return "osd_repop"; } - void print(ostream& out) const { + const char *get_type_name() const override { return "osd_repop"; } + void print(ostream& out) const override { out << "osd_repop(" << reqid << " " << pgid; if (!final_decode_needed) { |