MCPcopy Create free account
hub / github.com/ceph/ceph / flush_mdlog_sync

Method flush_mdlog_sync

src/client/Client.cc:7103–7121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7101}
7102
7103void Client::flush_mdlog_sync(Inode *in)
7104{
7105 if (in->unsafe_ops.empty()) {
7106 return;
7107 }
7108
7109 std::set<mds_rank_t> anchor;
7110 for (auto &&p : in->unsafe_ops) {
7111 anchor.emplace(p->mds);
7112 }
7113 if (in->auth_cap) {
7114 anchor.emplace(in->auth_cap->session->mds_num);
7115 }
7116
7117 for (auto &rank : anchor) {
7118 auto session = &mds_sessions.at(rank);
7119 flush_mdlog(session->get());
7120 }
7121}
7122
7123void Client::flush_mdlog_sync()
7124{

Callers 1

advanceMethod · 0.80

Calls 4

emptyMethod · 0.45
emplaceMethod · 0.45
atMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected