]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: dump next_snap when checking dentry corruption
authorMilind Changire <mchangir@redhat.com>
Thu, 29 Aug 2024 07:20:49 +0000 (12:50 +0530)
committerPatrick Donnelly <pdonnell@ibm.com>
Mon, 24 Feb 2025 13:50:17 +0000 (08:50 -0500)
next_snap is missing from the logs to make sense of the corruption

Fixes: https://tracker.ceph.com/issues/67770
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit 876bdcf2def0db9c197f200cdfc05e2255f24bf4)

src/mds/CDentry.cc

index b9a232798d88050ce68f9cd8edb3abdebb9efead..59dae330d8eee1d789fb6bfd41b048da61aedcf4 100644 (file)
@@ -717,7 +717,7 @@ bool CDentry::check_corruption(bool load)
       dout(1) << "loaded already corrupt dentry: " << *this << dendl;
       corrupt_first_loaded = true;
     } else {
-      derr << "newly corrupt dentry to be committed: " << *this << dendl;
+      derr << "newly corrupt dentry to be committed: " << *this << " with next_snap: " << next_snap << dendl;
     }
     if (g_conf().get_val<bool>("mds_go_bad_corrupt_dentry")) {
       dir->go_bad_dentry(last, get_name());