]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
config: don't make noise about 'internal_safe_to_start_threads'
authorSage Weil <sage@inktank.com>
Mon, 21 Jan 2013 16:45:10 +0000 (08:45 -0800)
committerSage Weil <sage@inktank.com>
Mon, 21 Jan 2013 16:45:10 +0000 (08:45 -0800)
This is set on start, and subsequently gets into the changed set.
Once any other config value is injected, it is the first thing reported
by the logs, but is confusing and useless to the user.  Hide it.

Signed-off-by: Sage Weil <sage@inktank.com>
src/common/config.cc

index 0e86b792ae9ee804941e3b9784facdf24490e370..f7f87ed6f91c90a7d7879825083c7744afc8feae 100644 (file)
@@ -536,7 +536,9 @@ 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)))) {
+    if ((oss) &&
+       (!_get_val(key.c_str(), &bufptr, sizeof(buf))) &&
+       key != "internal_safe_to_start_threads") {
       (*oss) << "applying configuration change: " << key << " = '"
                     << buf << "'\n";
     }