]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: Expose pg_sum in pg_summary
authorBoris Ranto <branto@redhat.com>
Thu, 3 May 2018 12:25:30 +0000 (14:25 +0200)
committerBoris Ranto <branto@redhat.com>
Fri, 1 Jun 2018 12:26:25 +0000 (14:26 +0200)
Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit 6f2a85e3b312dc60b009bcb509f5983905e802e5)

src/mgr/ActivePyModules.cc

index 82f845091cf92c3a5717fe7c0e5168e1bbe2f390..969904bc8ac2e4bbad9507e0bd11d6e4ae6034ae 100644 (file)
@@ -260,6 +260,9 @@ PyObject *ActivePyModules::get_python(const std::string &what)
             f.dump_int(i.first.c_str(), i.second);
           }
           f.close_section();
+          f.open_object_section("pg_stats_sum");
+          pg_map.pg_sum.dump(&f);
+          f.close_section();
         }
     );
     return f.get();