From 537f18cbc914d9e32dbf53d02558a1713a20b65f Mon Sep 17 00:00:00 2001 From: kungf Date: Thu, 10 Aug 2017 20:05:00 +0800 Subject: [PATCH] mon: return directly after health_events_cleanup when mon_health_to_clog was set false, all health events was cleanup, no need to judge the change of mon_health_to_clog_interval and mon_health_to_clog_tick_interval. Signed-off-by: wang yang --- src/mon/Monitor.cc | 1 + 1 file changed, 1 insertion(+) mode change 100644 => 100755 src/mon/Monitor.cc diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc old mode 100644 new mode 100755 index b577b6f2db7..4e684de12ce --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -2359,6 +2359,7 @@ void Monitor::health_to_clog_update_conf(const std::set &changed) if (changed.count("mon_health_to_clog")) { if (!cct->_conf->mon_health_to_clog) { health_events_cleanup(); + return; } else { if (!health_tick_event) { health_tick_start();