Fixes: http://tracker.ceph.com/issues/18261
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
f->open_object_section("status");
f->dump_unsigned("minimum_set", minimum_set);
f->dump_unsigned("active_set", active_set);
- f->open_object_section("registered_clients");
+ f->open_array_section("registered_clients");
for (std::set<cls::journal::Client>::iterator c =
registered_clients.begin(); c != registered_clients.end(); ++c) {
+ f->open_object_section("client");
c->dump(f);
+ f->close_section();
}
f->close_section();
f->close_section();
f->open_object_section("status");
if (f) {
- f->open_object_section("watchers");
+ f->open_array_section("watchers");
for (std::list<obj_watch_t>::iterator i = watchers.begin(); i != watchers.end(); ++i) {
f->open_object_section("watcher");
f->dump_string("address", i->addr);