Skip to content

Commit 5d8aa52

Browse files
committed
mds: print the path depth to help debug mds issue
From the path depth we can get more useful info, such as whether the path_traverse() acquired any locks, etc. Fixes: https://tracker.ceph.com/issues/67280 Signed-off-by: Xiubo Li <[email protected]>
1 parent 808ecbb commit 5d8aa52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mds/MDCache.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8335,7 +8335,8 @@ int MDCache::path_traverse(const MDRequestRef& mdr, MDSContextFactory& cf,
83358335

83368336
if (mds->logger) mds->logger->inc(l_mds_traverse);
83378337

8338-
dout(7) << "traverse: opening base ino " << path.get_ino() << " snap " << snapid << dendl;
8338+
dout(7) << "traverse: opening base ino " << path.get_ino() << " snap " << snapid
8339+
<< " path depth " << path.depth() << dendl;
83398340
CInode *cur = get_inode(path.get_ino());
83408341
if (!cur) {
83418342
if (MDS_INO_IS_MDSDIR(path.get_ino())) {

0 commit comments

Comments
 (0)