summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-01-22 10:25:37 -0800
committerSage Weil <sage@inktank.com>2013-01-22 10:25:37 -0800
commit4a871b559deb5a093845fce9279f47783128265a (patch)
treec046ad56fb5c73ee6f59f051c763529904f0d397
parent3399860de2724281ee024b52f461b60f769ee0ee (diff)
parent359d0e98c1b956572d6fc5cc20a145355a95267a (diff)
downloadceph-4a871b559deb5a093845fce9279f47783128265a.tar.gz
Merge branch 'wip-config'
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r--src/common/config.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/common/config.cc b/src/common/config.cc
index 0e86b792ae9..7cd9373dd1b 100644
--- a/src/common/config.cc
+++ b/src/common/config.cc
@@ -435,6 +435,8 @@ int md_config_t::parse_option(std::vector<const char*>& args,
// cout << "subsys " << subsys.get_name(o) << " log " << log << " gather " << gather << std::endl;
subsys.set_log_level(o, log);
subsys.set_gather_level(o, gather);
+ if (oss)
+ *oss << "debug_" << subsys.get_name(o) << "=" << log << "/" << gather << " ";
}
break;
}
@@ -536,9 +538,10 @@ void md_config_t::_apply_changes(std::ostream *oss)
for (changed_set_t::const_iterator c = changed.begin();
c != changed.end(); ++c) {
const std::string &key(*c);
- if ((oss) && (!_get_val(key.c_str(), &bufptr, sizeof(buf)))) {
- (*oss) << "applying configuration change: " << key << " = '"
- << buf << "'\n";
+ if ((oss) &&
+ (!_get_val(key.c_str(), &bufptr, sizeof(buf))) &&
+ key != "internal_safe_to_start_threads") {
+ (*oss) << key << " = '" << buf << "' ";
}
pair < obs_map_t::iterator, obs_map_t::iterator >
range(observers.equal_range(key));