]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: eval inodes with caps imported by cache rejoin message
authorYan, Zheng <zheng.z.yan@intel.com>
Sun, 17 Mar 2013 01:45:55 +0000 (09:45 +0800)
committerGreg Farnum <greg@inktank.com>
Mon, 1 Apr 2013 16:26:24 +0000 (09:26 -0700)
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
src/mds/MDCache.cc

index 4c534d06ebc82f9ef9b06bd4824f55242c9ec735..78cf4f5600d62f2aa977d402b06d20068d917de9 100644 (file)
@@ -3827,6 +3827,7 @@ void MDCache::handle_cache_rejoin_weak(MMDSCacheRejoin *weak)
        dout(10) << " claiming cap import " << p->first << " client." << q->first << " on " << *in << dendl;
        rejoin_import_cap(in, q->first, q->second, from);
       }
+      mds->locker->eval(in, CEPH_CAP_LOCKS, true);
     }
   } else {
     assert(mds->is_rejoin());