From: xie xingguo Date: Wed, 4 May 2016 02:02:01 +0000 (+0800) Subject: mon/Monitor: add "host" to tracked_conf_key X-Git-Tag: v11.0.0~573^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c79fc3305be42bd6126e8a60ae1f220d86754830;p=ceph.git mon/Monitor: add "host" to tracked_conf_key The get_tracked_conf_keys() method gets the specified keys registered and works as filters for configuration changing, so we can track these key configuration changing and react properly. Right now graylog prints host in its log entry, so Monitor::update_log_clients() also reads from conf.host and pass the host read from conf to graylog. That is why we shall get "host" to the tracked_conf_key too. Signed-off-by: xie xingguo --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 9f9bf59bb678..beea5e8b7b47 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -464,6 +464,7 @@ const char** Monitor::get_tracked_conf_keys() const "clog_to_graylog", "clog_to_graylog_host", "clog_to_graylog_port", + "host", "fsid", // periodic health to clog "mon_health_to_clog",