]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/DataHealthService: preserve compat of data stats dump
authorSage Weil <sage@inktank.com>
Mon, 26 Aug 2013 20:19:27 +0000 (13:19 -0700)
committerSage Weil <sage@inktank.com>
Mon, 26 Aug 2013 20:19:27 +0000 (13:19 -0700)
See 96621bdb004e539a0186fb592f44d51cf49f1c31.

Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/DataHealthService.cc

index a05948d3ce7516f95f04ad1efda9007580db31f9..5fc745ce11d2498322769a17b703e17635e215e4 100644 (file)
@@ -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);