]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/Monitor: add "host" to tracked_conf_key
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 4 May 2016 02:02:01 +0000 (10:02 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 5 May 2016 06:47:38 +0000 (14:47 +0800)
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 <xie.xingguo@zte.com.cn>
src/mon/Monitor.cc

index 9f9bf59bb6785d50c27dde72b14042f68c369315..beea5e8b7b477be7aeec129b20366eb97a36d72c 100644 (file)
@@ -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",