]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
client: fix compat version on MStatfs
authorJohn Spray <john.spray@redhat.com>
Wed, 23 Aug 2017 13:52:22 +0000 (14:52 +0100)
committerJohn Spray <john.spray@redhat.com>
Wed, 23 Aug 2017 14:29:14 +0000 (15:29 +0100)
Fixes: http://tracker.ceph.com/issues/21078
Signed-off-by: John Spray <john.spray@redhat.com>
src/messages/MStatfs.h

index a27ef9b54276ea4d1df48a54434986e30be07f3a..ec18cfff04fdce62806c419bbc6ea3d4544cd80b 100644 (file)
 class MStatfs : public PaxosServiceMessage {
 
   static const int HEAD_VERSION = 2;
-  static const int COMPAT_VERSION = 0;
+  static const int COMPAT_VERSION = 1;
 
 public:
   uuid_d fsid;
   boost::optional<int64_t> data_pool;
 
-  MStatfs() : PaxosServiceMessage(CEPH_MSG_STATFS, 0, HEAD_VERSION) {}
+  MStatfs() : PaxosServiceMessage(CEPH_MSG_STATFS, 0, HEAD_VERSION, COMPAT_VERSION) {}
   MStatfs(const uuid_d& f, ceph_tid_t t, boost::optional<int64_t> _data_pool,
              version_t v) : PaxosServiceMessage(CEPH_MSG_STATFS, v,
                                             HEAD_VERSION, COMPAT_VERSION),