From: Sage Weil Date: Sun, 28 Jul 2013 15:19:12 +0000 (-0700) Subject: mon/DataHealthService: do not name xml key after mon X-Git-Tag: v0.67-rc3~19 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4b6c569a1143d997724fbce57fdf8ae9099ebc1a;p=ceph.git mon/DataHealthService: do not name xml key after mon The name might be something like '0', which is illegal. This should be the *type*, not name. Signed-off-by: Sage Weil --- diff --git a/src/mon/DataHealthService.cc b/src/mon/DataHealthService.cc index a55e8c392e22..6e8aa313a361 100644 --- a/src/mon/DataHealthService.cc +++ b/src/mon/DataHealthService.cc @@ -93,7 +93,7 @@ health_status_t DataHealthService::get_health( } if (f) { - f->open_object_section(mon_name.c_str()); + f->open_object_section("mon"); f->dump_string("name", mon_name.c_str()); f->dump_int("kb_total", stats.kb_total); f->dump_int("kb_used", stats.kb_used);