]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: remove now-unused owner_(uid|gid) from dir_result_t
authorGreg Farnum <gfarnum@redhat.com>
Wed, 3 Aug 2016 20:12:44 +0000 (13:12 -0700)
committerGreg Farnum <gfarnum@redhat.com>
Wed, 21 Sep 2016 23:33:55 +0000 (16:33 -0700)
src/client/Client.cc
src/client/Client.h

index 5726e371e550e6ff7bad4667b3f711ce7305b22f..48a1cbd59179c35be65acad5d73943a549e6c94c 100644 (file)
@@ -163,7 +163,7 @@ bool Client::CommandHook::call(std::string command, cmdmap_t& cmdmap,
 // -------------
 
 dir_result_t::dir_result_t(Inode *in, const UserPerm& perms)
-  : inode(in), owner_uid(-1), owner_gid(-1), offset(0), next_offset(2),
+  : inode(in), offset(0), next_offset(2),
     release_count(0), ordered_count(0), cache_index(0), start_shared_gen(0),
     perms(perms)
   { }
@@ -6888,8 +6888,6 @@ int Client::_opendir(Inode *in, dir_result_t **dirpp, const UserPerm& perms)
     return -ENOTDIR;
   *dirpp = new dir_result_t(in, perms);
   opened_dirs.insert(*dirpp);
-  (*dirpp)->owner_uid = perms.uid();
-  (*dirpp)->owner_gid = perms.gid();
   ldout(cct, 3) << "_opendir(" << in->ino << ") = " << 0 << " (" << *dirpp << ")" << dendl;
   return 0;
 }
index df25eb978cef0daf0f8d2b1e382bea65732dd17e..bc60b16c24451c3272f7a0bcc2a8b9be835c273d 100644 (file)
@@ -186,9 +186,6 @@ struct dir_result_t {
   }
 
   InodeRef inode;
-  int owner_uid;
-  int owner_gid;
-
   int64_t offset;        // hash order:
                         //   (0xff << 52) | ((24 bits hash) << 28) |
                         //   (the nth entry has hash collision);