summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Spray <john.spray@redhat.com>2017-08-23 15:52:22 +0200
committerJohn Spray <john.spray@redhat.com>2017-08-23 16:29:14 +0200
commit744160d784463dd6220707c3bcc96a2194997aab (patch)
treebe177370417f965d3a8308338241b1583cbbf80c
parentMerge PR #17122 into master (diff)
downloadceph-744160d784463dd6220707c3bcc96a2194997aab.tar.xz
ceph-744160d784463dd6220707c3bcc96a2194997aab.zip
client: fix compat version on MStatfs
Fixes: http://tracker.ceph.com/issues/21078 Signed-off-by: John Spray <john.spray@redhat.com>
-rw-r--r--src/messages/MStatfs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/messages/MStatfs.h b/src/messages/MStatfs.h
index a27ef9b5427..ec18cfff04f 100644
--- a/src/messages/MStatfs.h
+++ b/src/messages/MStatfs.h
@@ -22,13 +22,13 @@
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),