From: Milind Changire Date: Thu, 29 Aug 2024 07:20:49 +0000 (+0530) Subject: mds: dump next_snap when checking dentry corruption X-Git-Tag: testing/wip-jcollin-testing-20251009.101304-squid~1^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a14ba290ef637d896a140358dc51946d86abb6ab;p=ceph-ci.git mds: dump next_snap when checking dentry corruption 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 (cherry picked from commit 876bdcf2def0db9c197f200cdfc05e2255f24bf4) --- diff --git a/src/mds/CDentry.cc b/src/mds/CDentry.cc index b9a232798d8..59dae330d8e 100644 --- a/src/mds/CDentry.cc +++ b/src/mds/CDentry.cc @@ -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("mds_go_bad_corrupt_dentry")) { dir->go_bad_dentry(last, get_name());