]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: do not reset reported if a new metric is not collected 30391/head
authorIlsoo Byun <ilsoobyun@linecorp.com>
Tue, 10 Sep 2019 09:13:02 +0000 (18:13 +0900)
committerPrashant D <pdhange@redhat.com>
Mon, 16 Sep 2019 00:12:33 +0000 (20:12 -0400)
Fixes: https://tracker.ceph.com/issues/41741
Signed-off-by: Ilsoo Byun <ilsoobyun@linecorp.com>
(cherry picked from commit 02cc60f6935a5005aa461da183c6c4332503be83)

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) {