summaryrefslogtreecommitdiffstats
path: root/src/messages/MMonElection.h
diff options
context:
space:
mode:
authorliuchang0812 <liuchang0812@gmail.com>2017-02-22 12:45:41 +0100
committerliuchang0812 <liuchang0812@gmail.com>2017-03-03 12:15:56 +0100
commitab9f6cea59bfae234ca45159079087403eb2ed43 (patch)
treee7bbaa6b2318ddf223ebec7bb1ff65b0dbf1ac2d /src/messages/MMonElection.h
parentMerge pull request #13762 from Liuchang0812/wip-remove-unnecessary-code-in-mon (diff)
downloadceph-ab9f6cea59bfae234ca45159079087403eb2ed43.tar.xz
ceph-ab9f6cea59bfae234ca45159079087403eb2ed43.zip
common: add override in msg subsystem
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
Diffstat (limited to 'src/messages/MMonElection.h')
-rw-r--r--src/messages/MMonElection.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/messages/MMonElection.h b/src/messages/MMonElection.h
index 97ab440d6fd..89f10a81a2b 100644
--- a/src/messages/MMonElection.h
+++ b/src/messages/MMonElection.h
@@ -73,15 +73,15 @@ public:
m->encode(monmap_bl, CEPH_FEATURES_ALL);
}
private:
- ~MMonElection() {}
+ ~MMonElection() override {}
public:
- const char *get_type_name() const { return "election"; }
- void print(ostream& out) const {
+ const char *get_type_name() const override { return "election"; }
+ void print(ostream& out) const override {
out << "election(" << fsid << " " << get_opname(op) << " " << epoch << ")";
}
- void encode_payload(uint64_t features) {
+ void encode_payload(uint64_t features) override {
if (monmap_bl.length() && (features != CEPH_FEATURES_ALL)) {
// reencode old-format monmap
MonMap t;
@@ -101,7 +101,7 @@ public:
::encode(sharing_bl, payload);
::encode(mon_features, payload);
}
- void decode_payload() {
+ void decode_payload() override {
bufferlist::iterator p = payload.begin();
if (header.version >= 2)
::decode(fsid, p);