From: Jeff Layton Date: Wed, 27 Mar 2019 16:46:28 +0000 (-0400) Subject: client: remove Inode dir_contacts field X-Git-Tag: v13.2.9~27^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=91b021cf9cdf3a29a6de63efd89ea67293f03895;p=ceph.git client: remove Inode dir_contacts field ...nothing uses this, and it's not quite clear what it's for in the first place. Signed-off-by: Jeff Layton (cherry picked from commit d070deef7de40d2af3b551665ced8396e4bd8e2a) --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 5b15069e33f2..7248547123e7 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -1035,20 +1035,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 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) diff --git a/src/client/Inode.cc b/src/client/Inode.cc index 1a03e7d9243b..3540bcca87ec 100644 --- a/src/client/Inode.cc +++ b/src/client/Inode.cc @@ -441,12 +441,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::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); } diff --git a/src/client/Inode.h b/src/client/Inode.h index f8505c8f9693..515d8c2acea9 100644 --- a/src/client/Inode.h +++ b/src/client/Inode.h @@ -188,7 +188,6 @@ struct Inode { // about the dir (if this is one!) Dir *dir; // if i'm a dir. fragtree_t dirfragtree; - set dir_contacts; uint64_t dir_release_count, dir_ordered_count; bool dir_hashed, dir_replicated;