]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: set alternate_name for new fullbit dentries
authorPatrick Donnelly <pdonnell@ibm.com>
Tue, 11 Mar 2025 19:01:46 +0000 (15:01 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Thu, 13 Mar 2025 14:08:51 +0000 (10:08 -0400)
Fixes: 9fbf37ade38bc1d057eda2459b0ccfd2ab40626a
Fixes: https://tracker.ceph.com/issues/70409
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
src/mds/journal.cc

index e786a02a3ae77b9160f68b11fe647e72c81902a6..2672e18d208f9862eb1b852f3227b1a13f6c7615 100644 (file)
@@ -1380,6 +1380,7 @@ void EMetaBlob::replay(MDSRank *mds, LogSegment *logseg, int type, MDPeerUpdate
        dn->set_version(fb.dnv);
        if (fb.is_dirty()) dn->_mark_dirty(logseg);
        dout(10) << "EMetaBlob.replay added (full) " << *dn << dendl;
+        dn->set_alternate_name(mempool::mds_co::string(fb.alternate_name));
       } else {
        dn->set_version(fb.dnv);
        if (fb.is_dirty()) dn->_mark_dirty(logseg);
@@ -1387,6 +1388,7 @@ void EMetaBlob::replay(MDSRank *mds, LogSegment *logseg, int type, MDPeerUpdate
        dn->first = fb.dnfirst;
        ceph_assert(dn->last == fb.dnlast);
       }
+      ceph_assert(dn->get_alternate_name() == fb.alternate_name);
       if (lump.is_importing())
        dn->mark_auth();
 
@@ -1504,7 +1506,7 @@ void EMetaBlob::replay(MDSRank *mds, LogSegment *logseg, int type, MDPeerUpdate
        dn->first = rb.dnfirst;
        ceph_assert(dn->last == rb.dnlast);
       }
-
+      ceph_assert(dn->get_alternate_name() == rb.alternate_name);
       if (lump.is_importing())
        dn->mark_auth();