MMgrReport contains info about changed schema, so create a notify
type for it so that Python modules interested in perf counters can
update schema only when it changes
Signed-off-by: Dan Mick <dan.mick@redhat.com>
assert(daemon != nullptr);
auto &daemon_counters = daemon->perf_counters;
daemon_counters.update(m);
+ // if there are any schema updates, notify the python modules
+ if (!m->declare_types.empty() || !m->undeclare_types.empty()) {
+ ostringstream oss;
+ oss << key.first << '.' << key.second;
+ py_modules.notify_all("perf_schema_update", oss.str());
+ }
if (daemon->service_daemon) {
utime_t now = ceph_clock_now();