From: Jeff Layton Date: Wed, 27 Mar 2019 16:46:28 +0000 (-0400) Subject: client: remove Inode dir_contacts field X-Git-Tag: v14.2.8~20^2~64^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ce1e0f9195e7597d3e509288e2cfafe4a1065ad2;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 e821de07fb3..cef80244d60 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -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 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 432530bd210..bb93aa2f19b 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 e101596c7f1..7526b38ee62 100644 --- a/src/client/Inode.h +++ b/src/client/Inode.h @@ -191,7 +191,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;