]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: fix compat version on MStatfs 17236/head
authorJohn Spray <john.spray@redhat.com>
Wed, 23 Aug 2017 13:52:22 +0000 (14:52 +0100)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 24 Aug 2017 16:43:14 +0000 (09:43 -0700)
Fixes: http://tracker.ceph.com/issues/21078
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 744160d784463dd6220707c3bcc96a2194997aab)

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),