// 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)
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);
}
// 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;