From: Ilsoo Byun Date: Tue, 10 Sep 2019 09:13:02 +0000 (+0900) Subject: mgr: do not reset reported if a new metric is not collected X-Git-Tag: v15.1.0~1575^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F30285%2Fhead;p=ceph.git mgr: do not reset reported if a new metric is not collected Fixes: https://tracker.ceph.com/issues/41741 Signed-off-by: Ilsoo Byun --- diff --git a/src/mgr/DaemonHealthMetricCollector.h b/src/mgr/DaemonHealthMetricCollector.h index 731b4c43b5c8..42bf905fa9bd 100644 --- a/src/mgr/DaemonHealthMetricCollector.h +++ b/src/mgr/DaemonHealthMetricCollector.h @@ -12,7 +12,7 @@ public: static std::unique_ptr create(daemon_metric m); void update(const DaemonKey& daemon, const DaemonHealthMetric& metric) { if (_is_relevant(metric.get_type())) { - reported = _update(daemon, metric); + reported |= _update(daemon, metric); } } void summarize(health_check_map_t& cm) {