From 214b51c37c253c1106ef3cbd03950f56f79c2848 Mon Sep 17 00:00:00 2001 From: Jos Collin Date: Thu, 13 Aug 2020 21:00:13 +0530 Subject: [PATCH] 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 --- src/mds/FSMap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3