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: v13.2.7~163^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F30391%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 (cherry picked from commit 02cc60f6935a5005aa461da183c6c4332503be83) --- 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) {