]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: return directly after health_events_cleanup 16964/head
authorkungf <yang.wang@easystack.cn>
Thu, 10 Aug 2017 12:05:00 +0000 (20:05 +0800)
committerkungf <yang.wang@easystack.cn>
Fri, 11 Aug 2017 02:16:37 +0000 (10:16 +0800)
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>
src/mon/Monitor.cc [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index b577b6f..4e684de
@@ -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();