]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
uclient: update dir inode, cap from reply
authorSage Weil <sage@newdream.net>
Tue, 28 Apr 2009 21:08:57 +0000 (14:08 -0700)
committerSage Weil <sage@newdream.net>
Tue, 28 Apr 2009 21:08:57 +0000 (14:08 -0700)
src/client/Client.cc

index 13c00b5595dd7c0b5015751a5424b200657b1330..d62f2c97813b05bc7f4d8d810add730e0ce4f095 100644 (file)
@@ -577,10 +577,7 @@ Inode* Client::insert_trace(MetaRequest *request, utime_t from, int mds)
   }
 
   if (reply->head.is_dentry) {
-    vinodeno_t vino = dirst.vino;
-    assert(inode_map.count(vino));
-    Inode *diri = inode_map[vino];
-    
+    Inode *diri = add_update_inode(&dirst, from, mds);
     update_dir_dist(diri, &dst);  // dir stat info is attached to inode...
 
     if (in) {