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:
SrinivasaBharathKanta 2026-06-16 09:51:26 +05:30 committed by GitHub
commit e2c6862ce9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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") {