summaryrefslogtreecommitdiffstats
path: root/src/messages/MExportDirCancel.h
diff options
context:
space:
mode:
authordongdong tao <dongodng.tao@canonical.com>2018-01-26 07:12:31 +0100
committertaodd <dongdong.tao@canonical.com>2019-08-01 12:22:00 +0200
commit9a193ec3bc9442ef334eaff31f0d89df0d5ea2c2 (patch)
tree88c48d4a1b7850472a5ba6bedb5a79f03530443c /src/messages/MExportDirCancel.h
parentMerge pull request #29419 from vshankar/wip-fix-rbd-support (diff)
downloadceph-9a193ec3bc9442ef334eaff31f0d89df0d5ea2c2.tar.xz
ceph-9a193ec3bc9442ef334eaff31f0d89df0d5ea2c2.zip
cephfs: Make mds-mds per message versioned
Fixes: http://tracker.ceph.com/issues/12107 Signed-off-by: dongdong tao <dongdong.tao@canonical.com>
Diffstat (limited to 'src/messages/MExportDirCancel.h')
-rw-r--r--src/messages/MExportDirCancel.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/messages/MExportDirCancel.h b/src/messages/MExportDirCancel.h
index c66cc1e4a0c..7e31c103d3d 100644
--- a/src/messages/MExportDirCancel.h
+++ b/src/messages/MExportDirCancel.h
@@ -20,15 +20,17 @@
class MExportDirCancel : public Message {
private:
+ static const int HEAD_VERSION = 1;
+ static const int COMPAT_VERSION = 1;
dirfrag_t dirfrag;
public:
dirfrag_t get_dirfrag() const { return dirfrag; }
protected:
- MExportDirCancel() : Message{MSG_MDS_EXPORTDIRCANCEL} {}
+ MExportDirCancel() : Message{MSG_MDS_EXPORTDIRCANCEL, HEAD_VERSION, COMPAT_VERSION} {}
MExportDirCancel(dirfrag_t df, uint64_t tid) :
- Message{MSG_MDS_EXPORTDIRCANCEL}, dirfrag(df) {
+ Message{MSG_MDS_EXPORTDIRCANCEL, HEAD_VERSION, COMPAT_VERSION}, dirfrag(df) {
set_tid(tid);
}
~MExportDirCancel() override {}