]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: remove Inode dir_contacts field
authorJeff Layton <jlayton@redhat.com>
Wed, 27 Mar 2019 16:46:28 +0000 (12:46 -0400)
committerNathan Cutler <ncutler@suse.com>
Mon, 7 Oct 2019 18:56:31 +0000 (20:56 +0200)
...nothing uses this, and it's not quite clear what it's for in the
first place.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit d070deef7de40d2af3b551665ced8396e4bd8e2a)

src/client/Client.cc
src/client/Inode.cc
src/client/Inode.h

index e821de07fb3604c771dd536460cc4dff173be242..cef80244d60b459823bd6180e7cfe7bc25061d39 100644 (file)
@@ -1047,20 +1047,6 @@ void Client::update_dir_dist(Inode *in, DirStat *dst)
 
   // replicated
   in->dir_replicated = !dst->dist.empty();  // FIXME that's just one frag!
-  
-  // dist
-  /*
-  if (!st->dirfrag_dist.empty()) {   // FIXME
-    set<int> dist = st->dirfrag_dist.begin()->second;
-    if (dist.empty() && !in->dir_contacts.empty())
-      ldout(cct, 9) << "lost dist spec for " << in->ino 
-              << " " << dist << dendl;
-    if (!dist.empty() && in->dir_contacts.empty()) 
-      ldout(cct, 9) << "got dist spec for " << in->ino 
-              << " " << dist << dendl;
-    in->dir_contacts = dist;
-  }
-  */
 }
 
 void Client::clear_dir_complete_and_ordered(Inode *diri, bool complete)
index 432530bd210198c2b87af156bbfd543b8aff7886..bb93aa2f19b5523532b0196ff13f3a03ab595347 100644 (file)
@@ -443,12 +443,6 @@ void Inode::dump(Formatter *f) const
   f->dump_unsigned("flags", flags);
 
   if (is_dir()) {
-    if (!dir_contacts.empty()) {
-      f->open_object_section("dir_contants");
-      for (set<int>::iterator p = dir_contacts.begin(); p != dir_contacts.end(); ++p)
-       f->dump_int("mds", *p);
-      f->close_section();
-    }
     f->dump_int("dir_hashed", (int)dir_hashed);
     f->dump_int("dir_replicated", (int)dir_replicated);
   }
index e101596c7f17bf52ca677494508429273be9ba29..7526b38ee62192daadd865b53baee1fa28ddc4e3 100644 (file)
@@ -191,7 +191,6 @@ struct Inode {
   // about the dir (if this is one!)
   Dir       *dir;     // if i'm a dir.
   fragtree_t dirfragtree;
-  set<int>  dir_contacts;
   uint64_t dir_release_count, dir_ordered_count;
   bool dir_hashed, dir_replicated;