The backtrace in openfile table maybe out-of-date, just skip fetching
dirfrags instead of crash the MDS.
Fixes: https://tracker.ceph.com/issues/54384
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
655a6d878f9f4939b74fd9d010b9e017a33247c0)
CInode *diri = mdcache->get_inode(ino);
if (!diri)
continue;
+
+ if (!diri->is_dir()) {
+ dout(10) << " " << *diri << " is not dir" << dendl;
+ continue;
+ }
+
if (diri->state_test(CInode::STATE_REJOINUNDEF))
continue;