mirror of
https://github.com/ceph/ceph
synced 2025-02-20 17:37:29 +00:00
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:
parent
96ed4eedc0
commit
537f18cbc9
1
src/mon/Monitor.cc
Normal file → Executable file
1
src/mon/Monitor.cc
Normal file → Executable 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();
|
||||
|
Loading…
Reference in New Issue
Block a user