]> git.apps.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>
Wed, 30 May 2018 18:07:00 +0000 (20:07 +0200)
Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit 6f2a85e3b312dc60b009bcb509f5983905e802e5)

src/mgr/ActivePyModules.cc

index 4cb8a0883a9e247c345d0a0b4f85037c18b25403..99a2fa12a6405816a5190e763396ab590bd583d9 100644 (file)
@@ -265,6 +265,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();