From 80551c23e8e5ee362ace5a990e80575392949d41 Mon Sep 17 00:00:00 2001 From: Milind Changire Date: Thu, 29 Aug 2024 12:50:49 +0530 Subject: [PATCH] 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) --- src/mds/CDentry.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/CDentry.cc b/src/mds/CDentry.cc index 69d8646fe02..dd1778c32b9 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()); -- 2.39.5