From: Jianyu Li Date: Thu, 4 Jan 2018 16:54:30 +0000 (+0800) Subject: Avoid the assert failure when the inode for the cap_export from other MDS happened... X-Git-Tag: v13.0.2~402^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=82b9b838ae0bd17247f6296f9d7001331f50663c;p=ceph.git Avoid the assert failure when the inode for the cap_export from other MDS happened not in MDCache Signed-off-by: Jianyu Li --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index c58ce5d6520..331d7af6049 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -4359,7 +4359,7 @@ void MDCache::handle_cache_rejoin_weak(MMDSCacheRejoin *weak) for (auto p = weak->cap_exports.begin(); p != weak->cap_exports.end(); ++p) { CInode *in = get_inode(p->first); - assert(in && in->is_auth()); + assert(!in || in->is_auth()); // note for (auto q = p->second.begin(); q != p->second.end(); ++q) { dout(10) << " claiming cap import " << p->first << " client." << q->first << dendl;