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/MMonPaxos.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/MMonPaxos.h')
-rw-r--r-- | src/messages/MMonPaxos.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/messages/MMonPaxos.h b/src/messages/MMonPaxos.h index 8094701bed7..328fd6e3c3f 100644 --- a/src/messages/MMonPaxos.h +++ b/src/messages/MMonPaxos.h @@ -74,12 +74,12 @@ class MMonPaxos : public Message { } private: - ~MMonPaxos() {} + ~MMonPaxos() override {} public: - const char *get_type_name() const { return "paxos"; } + const char *get_type_name() const override { return "paxos"; } - void print(ostream& out) const { + void print(ostream& out) const override { out << "paxos(" << get_opname(op) << " lc " << last_committed << " fc " << first_committed @@ -89,7 +89,7 @@ public: out << ")"; } - void encode_payload(uint64_t features) { + void encode_payload(uint64_t features) override { header.version = HEAD_VERSION; ::encode(epoch, payload); ::encode(op, payload); @@ -104,7 +104,7 @@ public: ::encode(latest_value, payload); ::encode(values, payload); } - void decode_payload() { + void decode_payload() override { bufferlist::iterator p = payload.begin(); ::decode(epoch, p); ::decode(op, p); |