From: Sage Weil Date: Mon, 26 Aug 2013 20:19:27 +0000 (-0700) Subject: mon/DataHealthService: preserve compat of data stats dump X-Git-Tag: v0.69~47 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=76a38c3bc6939f7675af76b5f3f1d7fe16253217;p=ceph.git mon/DataHealthService: preserve compat of data stats dump See 96621bdb004e539a0186fb592f44d51cf49f1c31. Signed-off-by: Sage Weil --- 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);