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

Method dump_pool

src/osd/OSDMap.cc:4061–4076  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4059}
4060
4061void OSDMap::dump_pool(CephContext *cct,
4062 int64_t pid,
4063 const pg_pool_t &pdata,
4064 ceph::Formatter *f) const
4065{
4066 std::string name("<unknown>");
4067 const auto &pni = pool_name.find(pid);
4068 if (pni != pool_name.end())
4069 name = pni->second;
4070 f->open_object_section("pool");
4071 f->dump_int("pool", pid);
4072 f->dump_string("pool_name", name);
4073 pdata.dump(f);
4074 dump_read_balance_score(cct, pid, pdata, f);
4075 f->close_section(); // pool
4076}
4077
4078void OSDMap::dump_read_balance_score(CephContext *cct,
4079 int64_t pid,

Callers

nothing calls this directly

Calls 7

findMethod · 0.45
endMethod · 0.45
open_object_sectionMethod · 0.45
dump_intMethod · 0.45
dump_stringMethod · 0.45
dumpMethod · 0.45
close_sectionMethod · 0.45

Tested by

no test coverage detected