]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: dump next_snap when checking dentry corruption 59504/head
authorMilind Changire <mchangir@redhat.com>
Thu, 29 Aug 2024 07:20:49 +0000 (12:50 +0530)
committerMilind Changire <mchangir@redhat.com>
Tue, 17 Sep 2024 03:02:09 +0000 (08:32 +0530)
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>
src/mds/CDentry.cc

index 942bd9a9ec6703f9655b18de351c3ae6b2452b9b..13b59eb8cdc3f7f66ae05a8828bf2aed2a10676e 100644 (file)
@@ -724,7 +724,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());