]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: fix health store size growing infinitely 55472/head
authorWei Wang <lightmelodies@outlook.com>
Mon, 29 Jan 2024 08:26:24 +0000 (08:26 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 7 Feb 2024 10:28:51 +0000 (10:28 +0000)
The `check_mutes` wrongly marks `changed` to true, trigger `propose_pending` and block following `maybe_trim` logic (`have_pending` will be always be false); as a result, the health store will never be trimmed.

Signed-off-by: Wei Wang <lightmelodies@outlook.com>
(cherry picked from commit 05a85848a01c443d67564a9904a778acfe19cee5)

src/mon/HealthMonitor.cc

index 4f0f6fe91276b07267bd8e96fef8d9bd1c98d501..60e35913a4c4a40f19cdc9a7b8dcad4294307e5a 100644 (file)
@@ -401,7 +401,7 @@ void HealthMonitor::tick()
 
 bool HealthMonitor::check_mutes()
 {
-  bool changed = true;
+  bool changed = false;
   auto now = ceph_clock_now();
   health_check_map_t all;
   gather_all_health_checks(&all);