Skip to content

Commit

Permalink
mds: Make mds can dynamic set optracker via asok.
Browse files Browse the repository at this point in the history
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
  • Loading branch information
majianpeng committed Jul 10, 2015
1 parent 5c49675 commit 7562db8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mds/MDS.cc
Expand Up @@ -874,6 +874,7 @@ const char** MDS::get_tracked_conf_keys() const
static const char* KEYS[] = {
"mds_op_complaint_time", "mds_op_log_threshold",
"mds_op_history_size", "mds_op_history_duration",
"mds_enable_op_tracker",
// clog & admin clog
"clog_to_monitors",
"clog_to_syslog",
Expand All @@ -897,6 +898,9 @@ void MDS::handle_conf_change(const struct md_config_t *conf,
op_tracker.set_history_size_and_duration(conf->mds_op_history_size,
conf->mds_op_history_duration);
}
if (changed.count("mds_enable_op_tracker")) {
op_tracker.set_tracking(conf->mds_enable_op_tracker);
}
if (changed.count("clog_to_monitors") ||
changed.count("clog_to_syslog") ||
changed.count("clog_to_syslog_level") ||
Expand Down

0 comments on commit 7562db8

Please sign in to comment.