]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: do not reset reported if a new metric is not collected 30285/head
authorIlsoo Byun <ilsoobyun@linecorp.com>
Tue, 10 Sep 2019 09:13:02 +0000 (18:13 +0900)
committerIlsoo Byun <ilsoobyun@linecorp.com>
Tue, 10 Sep 2019 16:46:27 +0000 (01:46 +0900)
Fixes: https://tracker.ceph.com/issues/41741
Signed-off-by: Ilsoo Byun <ilsoobyun@linecorp.com>
src/mgr/DaemonHealthMetricCollector.h

index 731b4c43b5c83b96f40d7618a557b381b39f5119..42bf905fa9bd0faf9d2624704e0b3295737d333f 100644 (file)
@@ -12,7 +12,7 @@ public:
   static std::unique_ptr<DaemonHealthMetricCollector> 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) {