Skip to content

Commit 876bdcf

Browse files
committed
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 <[email protected]>
1 parent fc70b44 commit 876bdcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mds/CDentry.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ bool CDentry::check_corruption(bool load)
724724
dout(1) << "loaded already corrupt dentry: " << *this << dendl;
725725
corrupt_first_loaded = true;
726726
} else {
727-
derr << "newly corrupt dentry to be committed: " << *this << dendl;
727+
derr << "newly corrupt dentry to be committed: " << *this << " with next_snap: " << next_snap << dendl;
728728
}
729729
if (g_conf().get_val<bool>("mds_go_bad_corrupt_dentry")) {
730730
dir->go_bad_dentry(last, get_name());

0 commit comments

Comments
 (0)