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: v20.0.0~971^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=876bdcf2def0db9c197f200cdfc05e2255f24bf4;p=ceph.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 --- diff --git a/src/mds/CDentry.cc b/src/mds/CDentry.cc index 942bd9a9ec6..13b59eb8cdc 100644 --- a/src/mds/CDentry.cc +++ b/src/mds/CDentry.cc @@ -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("mds_go_bad_corrupt_dentry")) { dir->go_bad_dentry(last, get_name());