diff options
author | Sage Weil <sage@inktank.com> | 2013-07-28 08:19:12 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-07-28 08:19:12 -0700 |
commit | 4b6c569a1143d997724fbce57fdf8ae9099ebc1a (patch) | |
tree | 2043ece4b6e5db6deb5191247582e8ef08ee2ca3 | |
parent | 6881ab3b39259adcd7aed7026ccae1cba1db7aa1 (diff) | |
download | ceph-4b6c569a1143d997724fbce57fdf8ae9099ebc1a.tar.gz |
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 <sage@inktank.com>
-rw-r--r-- | src/mon/DataHealthService.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mon/DataHealthService.cc b/src/mon/DataHealthService.cc index a55e8c392e2..6e8aa313a36 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); |