From: Sage Weil Date: Thu, 2 Dec 2021 15:19:16 +0000 (-0500) Subject: mgr: stop issuing events that no modules consume X-Git-Tag: v17.1.0~282^2~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d3c8f171e9aaa9cbf970b6dadda5837ca9b030c7;p=ceph-ci.git mgr: stop issuing events that no modules consume Signed-off-by: Sage Weil --- diff --git a/src/mgr/DaemonServer.cc b/src/mgr/DaemonServer.cc index 36ab66db999..5fcd3d403e0 100644 --- a/src/mgr/DaemonServer.cc +++ b/src/mgr/DaemonServer.cc @@ -678,9 +678,11 @@ bool DaemonServer::handle_report(const ref_t& m) } // if there are any schema updates, notify the python modules + /* no users currently if (!m->declare_types.empty() || !m->undeclare_types.empty()) { py_modules.notify_all("perf_schema_update", ceph::to_string(key)); } + */ if (m->get_connection()->peer_is_osd()) { osd_perf_metric_collector.process_reports(m->osd_perf_metric_reports); diff --git a/src/mgr/Mgr.cc b/src/mgr/Mgr.cc index b609c7d1d5c..ec654877fad 100644 --- a/src/mgr/Mgr.cc +++ b/src/mgr/Mgr.cc @@ -630,7 +630,7 @@ bool Mgr::ms_dispatch2(const ref_t& m) break; case MSG_SERVICE_MAP: handle_service_map(ref_cast(m)); - py_module_registry->notify_all("service_map", ""); + //no users: py_module_registry->notify_all("service_map", ""); break; case MSG_LOG: handle_log(ref_cast(m)); @@ -778,7 +778,7 @@ void Mgr::handle_mgr_digest(ref_t m) dout(10) << m->mon_status_json.length() << dendl; dout(10) << m->health_json.length() << dendl; cluster_state.load_digest(m.get()); - py_module_registry->notify_all("mon_status", ""); + //no users: py_module_registry->notify_all("mon_status", ""); py_module_registry->notify_all("health", ""); // Hack: use this as a tick/opportunity to prompt python-land that