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 <yang.wang@easystack.cn>
This commit is contained in:
kungf 2017-08-10 20:05:00 +08:00
parent 96ed4eedc0
commit 537f18cbc9

1
src/mon/Monitor.cc Normal file → Executable file
View File

@ -2359,6 +2359,7 @@ void Monitor::health_to_clog_update_conf(const std::set<std::string> &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();