From d6b211346ed465ffcaa2870ecf33944d2fd7ba20 Mon Sep 17 00:00:00 2001 From: Ilsoo Byun Date: Tue, 10 Sep 2019 18:13:02 +0900 Subject: [PATCH] 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) --- src/mgr/DaemonHealthMetricCollector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mgr/DaemonHealthMetricCollector.h b/src/mgr/DaemonHealthMetricCollector.h index 731b4c43b5c83..42bf905fa9bd0 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) { -- 2.39.5