From: Jeff Layton Date: Wed, 27 Mar 2019 16:46:28 +0000 (-0400) Subject: client: remove Inode dir_contacts field X-Git-Tag: v15.1.0~1360^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d070deef7de40d2af3b551665ced8396e4bd8e2a;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 --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 332c151142aa..64f4bc98766d 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -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 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 432530bd2101..bb93aa2f19b5 100644 --- a/src/client/Inode.cc +++ b/src/client/Inode.cc @@ -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::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 da2c9225ac5a..42dbddc97ec8 100644 --- a/src/client/Inode.h +++ b/src/client/Inode.h @@ -192,7 +192,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;