]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: don't need inode when request CEPH_MDS_OP_LOOKUPPARENT 12478/head
authorhuanwen ren <ren.huanwen@zte.com.cn>
Wed, 14 Dec 2016 04:29:59 +0000 (04:29 +0000)
committerhuanwen ren <ren.huanwen@zte.com.cn>
Fri, 16 Dec 2016 08:32:41 +0000 (08:32 +0000)
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
src/client/Client.cc

index 00b7c024f3a3f6c9c17a9dda3ccfed2702dfe627..4de486acfb99fa1187f5c147d3698fcd151a9832 100644 (file)
@@ -7973,7 +7973,6 @@ int Client::lookup_parent(Inode *ino, const UserPerm& perms, Inode **parent)
   MetaRequest *req = new MetaRequest(CEPH_MDS_OP_LOOKUPPARENT);
   filepath path(ino->ino);
   req->set_filepath(path);
-  req->set_inode(ino);
 
   InodeRef target;
   int r = make_request(req, perms, &target, NULL, rand() % mdsmap->get_num_in_mds());