summaryrefslogtreecommitdiffstats
path: root/src/messages/MLock.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/MLock.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/MLock.h')
-rw-r--r--src/messages/MLock.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/messages/MLock.h b/src/messages/MLock.h
index 746efe4f618..9ca205d3a0f 100644
--- a/src/messages/MLock.h
+++ b/src/messages/MLock.h
@@ -56,11 +56,11 @@ public:
lockdata.claim(bl);
}
private:
- ~MLock() {}
+ ~MLock() override {}
public:
- const char *get_type_name() const { return "ILock"; }
- void print(ostream& out) const {
+ const char *get_type_name() const override { return "ILock"; }
+ void print(ostream& out) const override {
out << "lock(a=" << get_lock_action_name(action)
<< " " << get_lock_type_name(lock_type)
<< " " << object_info
@@ -72,7 +72,7 @@ public:
this->lockdata = lockdata;
}
- void decode_payload() {
+ void decode_payload() override {
bufferlist::iterator p = payload.begin();
::decode(asker, p);
::decode(action, p);
@@ -81,7 +81,7 @@ public:
::decode(object_info, p);
::decode(lockdata, p);
}
- virtual void encode_payload(uint64_t features) {
+ void encode_payload(uint64_t features) override {
::encode(asker, payload);
::encode(action, payload);
::encode(reqid, payload);