mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
Merge pull request #67747 from indirasawant/wip-isawant-mgr-standby-details
mon/mgr: include standby manager details in ceph mgr stat
This commit is contained in:
commit
e2c6862ce9
@ -998,6 +998,14 @@ bool MgrMonitor::preprocess_command(MonOpRequestRef op)
|
||||
f->dump_bool("available", map.get_available());
|
||||
f->dump_string("active_name", map.get_active_name());
|
||||
f->dump_unsigned("num_standby", map.get_num_standby());
|
||||
f->open_array_section("standbys");
|
||||
for (const auto& [gid, s] : map.standbys) {
|
||||
f->open_object_section("standby_mgr");
|
||||
f->dump_unsigned("gid", s.gid);
|
||||
f->dump_string("name", s.name);
|
||||
f->close_section();
|
||||
}
|
||||
f->close_section();
|
||||
f->close_section();
|
||||
f->flush(rdata);
|
||||
} else if (prefix == "mgr dump") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user