]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: Fix MMDSCacheRejoin::dn_strong version check failure 61945/head
authorKotresh HR <khiremat@redhat.com>
Tue, 4 Mar 2025 16:18:57 +0000 (21:48 +0530)
committerKotresh HR <khiremat@redhat.com>
Wed, 5 Mar 2025 11:32:40 +0000 (17:02 +0530)
commitce3181ed251b1e75c2b5e78336fc289d41d0cc64
treeae9e38c47228550c29812d8b3bc7c5cae6dc9d15
parent693f058426a4695348482cb07a1f763abe6e6543
mds: Fix MMDSCacheRejoin::dn_strong version check failure

MMDSCacheRejoin::dn_strong structure inside MMDSCacheRejoin
class is not versioned. But the referent inodes feature
requires to add a new variable to 'dn_strong'. Since
it's not versioned, the ceph-object-corpus encode/decode
test (src//readable.sh) is failing for no backward
compatibility.

This patch fixes the versioning issue of MMDSCacheRejoin::dn_strong
by introducing a new struct MMDSCacheRejoin::dn_strong_new
which encapsulates 'dn_strong' and the new variable and is versioned.

Signed-off-by: Kotresh HR <khiremat@redhat.com>
src/mds/MDCache.cc
src/messages/MMDSCacheRejoin.h
src/tools/ceph-dencoder/common_types.h