summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-08-26 13:19:27 -0700
committerSage Weil <sage@inktank.com>2013-08-26 13:19:27 -0700
commit76a38c3bc6939f7675af76b5f3f1d7fe16253217 (patch)
treeedb05647586097fe3e38b79d6f1e40575734a7f0
parente8df14244117d9335d9fa9737c63cd73428c2080 (diff)
downloadceph-76a38c3bc6939f7675af76b5f3f1d7fe16253217.tar.gz
mon/DataHealthService: preserve compat of data stats dump
See 96621bdb004e539a0186fb592f44d51cf49f1c31. Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/mon/DataHealthService.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mon/DataHealthService.cc b/src/mon/DataHealthService.cc
index a05948d3ce7..5fc745ce11d 100644
--- a/src/mon/DataHealthService.cc
+++ b/src/mon/DataHealthService.cc
@@ -107,9 +107,8 @@ health_status_t DataHealthService::get_health(
if (f) {
f->open_object_section("mon");
f->dump_string("name", mon_name.c_str());
- f->open_object_section("data_stats");
+ // leave this unenclosed by an object section to avoid breaking backward-compatibility
stats.dump(f);
- f->close_section();
f->dump_stream("health") << health_status;
if (health_status != HEALTH_OK)
f->dump_string("health_detail", health_detail);