]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr: stop issuing events that no modules consume
authorSage Weil <sage@newdream.net>
Thu, 2 Dec 2021 15:19:16 +0000 (10:19 -0500)
committerSage Weil <sage@newdream.net>
Thu, 2 Dec 2021 15:19:16 +0000 (10:19 -0500)
Signed-off-by: Sage Weil <sage@newdream.net>
src/mgr/DaemonServer.cc
src/mgr/Mgr.cc

index 36ab66db99929be4716fab121afedaf4b937d678..5fcd3d403e0d040da9374c749d0b2408225241dd 100644 (file)
@@ -678,9 +678,11 @@ bool DaemonServer::handle_report(const ref_t<MMgrReport>& 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);
index b609c7d1d5c6dadbc9a4b6b87227ef732d3b1ef1..ec654877fad261b68669039cb6a7e2bb16469757 100644 (file)
@@ -630,7 +630,7 @@ bool Mgr::ms_dispatch2(const ref_t<Message>& m)
       break;
     case MSG_SERVICE_MAP:
       handle_service_map(ref_cast<MServiceMap>(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<MLog>(m));
@@ -778,7 +778,7 @@ void Mgr::handle_mgr_digest(ref_t<MMgrDigest> 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