]> git.apps.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:51:02 +0000 (08:51 -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 69d8646fe028e71cdd833e60e97b71515a5df7d8..dd1778c32b9b08b384baa20f69b4360d52f548af 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());