From: Jos Collin Date: Thu, 13 Aug 2020 15:30:13 +0000 (+0530) Subject: mds: revert the decode version X-Git-Tag: v16.1.0~1412^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=214b51c37c253c1106ef3cbd03950f56f79c2848;p=ceph.git mds: revert the decode version Introduced in https://github.com/ceph/ceph/commit/3fac3b1236c4918e9640e38fe7f5f59efc0a23b9, the decode changes are reverted but the version number is not. Fixes: https://tracker.ceph.com/issues/46926 Signed-off-by: Jos Collin --- diff --git a/src/mds/FSMap.cc b/src/mds/FSMap.cc index 9fd18f4e187c..50d252230077 100644 --- a/src/mds/FSMap.cc +++ b/src/mds/FSMap.cc @@ -505,7 +505,7 @@ void FSMap::decode(bufferlist::const_iterator& p) // MDSMonitor to store an FSMap instead of an MDSMap was // 5, so anything older than 6 is decoded as an MDSMap, // and anything newer is decoded as an FSMap. - DECODE_START_LEGACY_COMPAT_LEN_16(8, 4, 4, p); + DECODE_START_LEGACY_COMPAT_LEN_16(7, 4, 4, p); if (struct_v < 6) { // Because the mon used to store an MDSMap where we now // store an FSMap, FSMap knows how to decode the legacy