Signed-off-by: Sage Weil <sage@redhat.com>
return changed;
}
+void HealthMonitor::gather_all_health_checks(health_check_map_t *all)
+{
+ for (auto& svc : mon->paxos_service) {
+ all->merge(svc->get_health_checks());
+ }
+}
+
bool HealthMonitor::check_member_health()
{
dout(20) << __func__ << dendl;
void tick() override;
+ void gather_all_health_checks(health_check_map_t *all);
+
/**
* @} // HealthMonitor_Inherited_h
*/
const char *sep2)
{
health_check_map_t all;
- for (auto& svc : paxos_service) {
- all.merge(svc->get_health_checks());
- }
+ healthmon()->gather_all_health_checks(&all);
health_status_t r = HEALTH_OK;
for (auto& p : all.checks) {
if (!healthmon()->mutes.count(p.first)) {