]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
client: remove Inode dir_contacts field
authorJeff Layton <jlayton@redhat.com>
Wed, 27 Mar 2019 16:46:28 +0000 (12:46 -0400)
committerJeff Layton <jlayton@redhat.com>
Wed, 25 Sep 2019 17:31:46 +0000 (13:31 -0400)
...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>
src/client/Client.cc
src/client/Inode.cc
src/client/Inode.h

index 332c151142aadfa3eb9dabb746956f46e56fa946..64f4bc98766d0a2c274c73e27794d05a8c300eeb 100644 (file)
@@ -1041,20 +1041,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 da2c9225ac5a666943c4aadcfc307bded349095a..42dbddc97ec856ef8becf209c22efb25e443c77e 100644 (file)
@@ -192,7 +192,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;