]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Avoid the assert failure when the inode for the cap_export from other MDS happened... 19836/head
authorJianyu Li <joannyli@foxmail.com>
Thu, 4 Jan 2018 16:54:30 +0000 (00:54 +0800)
committerJianyu Li <joannyli@foxmail.com>
Thu, 4 Jan 2018 16:54:30 +0000 (00:54 +0800)
Signed-off-by: Jianyu Li <joannyli@tencent.com>
src/mds/MDCache.cc

index c58ce5d6520de7806e9788b092a4d56a04a20289..331d7af60494f226d62d653d2e01918e7fd3a21a 100644 (file)
@@ -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;