]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/telemetry: clear the event after being awaken by it
authorKefu Chai <kchai@redhat.com>
Thu, 8 Aug 2019 04:24:53 +0000 (12:24 +0800)
committerJoao Eduardo Luis <joao@suse.com>
Mon, 9 Dec 2019 19:36:54 +0000 (19:36 +0000)
otherwise telemetry will have a busy-loop once it's signaled.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 0dddb20685007d990dc30daddca6212d36e5e308)

src/pybind/mgr/telemetry/module.py

index d68974a01bac65c61967f294a0b3385abe3f2c0e..9fbf3c7ed8ffdfe364359037cdf2e6b946dd1793 100644 (file)
@@ -436,6 +436,8 @@ class Module(MgrModule):
         self.event.wait(10)
 
         while self.run:
+            self.event.clear()
+
             self.refresh_health_checks()
 
             if self.last_opt_revision < LAST_REVISION_RE_OPT_IN: