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/MMDSFindIno.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/MMDSFindIno.h')
-rw-r--r-- | src/messages/MMDSFindIno.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/messages/MMDSFindIno.h b/src/messages/MMDSFindIno.h index 859a7c405f1..2d94bd835c7 100644 --- a/src/messages/MMDSFindIno.h +++ b/src/messages/MMDSFindIno.h @@ -25,16 +25,16 @@ struct MMDSFindIno : public Message { MMDSFindIno() : Message(MSG_MDS_FINDINO) {} MMDSFindIno(ceph_tid_t t, inodeno_t i) : Message(MSG_MDS_FINDINO), tid(t), ino(i) {} - const char *get_type_name() const { return "findino"; } - void print(ostream &out) const { + const char *get_type_name() const override { return "findino"; } + void print(ostream &out) const override { out << "findino(" << tid << " " << ino << ")"; } - void encode_payload(uint64_t features) { + void encode_payload(uint64_t features) override { ::encode(tid, payload); ::encode(ino, payload); } - void decode_payload() { + void decode_payload() override { bufferlist::iterator p = payload.begin(); ::decode(tid, p); ::decode(ino, p); |