mirror of
https://github.com/ceph/ceph
synced 2025-02-24 19:47:44 +00:00
Merge PR #39728 into master
* refs/pull/39728/head: mon/PGMap: include the per-pool usage breakdown in pg dump Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
9abdf95816
@ -1621,6 +1621,16 @@ void PGMap::dump_osd_stats(ceph::Formatter *f, bool with_net) const
|
||||
f->close_section();
|
||||
}
|
||||
f->close_section();
|
||||
|
||||
f->open_array_section("pool_statfs");
|
||||
for (auto& p : pool_statfs) {
|
||||
f->open_object_section("item");
|
||||
f->dump_int("poolid", p.first.first);
|
||||
f->dump_int("osd", p.first.second);
|
||||
p.second.dump(f);
|
||||
f->close_section();
|
||||
}
|
||||
f->close_section();
|
||||
}
|
||||
|
||||
void PGMap::dump_osd_ping_times(ceph::Formatter *f) const
|
||||
|
Loading…
Reference in New Issue
Block a user