const std::string global_key = PyModule::config_prefix
+ module_name + "/" + key;
- dout(4) << __func__ << "key: " << global_key << dendl;
+ dout(4) << __func__ << " key: " << global_key << dendl;
if (store_cache.count(global_key)) {
*val = store_cache.at(global_key);
dout(4) << __func__ << " key: " << global_key << dendl;
-
Mutex::Locker lock(module_config.lock);
if (module_config.config.count(global_key)) {
Mutex::Locker l(module_config.lock);
if (!v.empty()) {
+ dout(4) << "Loaded module_config entry " << k << ":" << v << dendl;
module_config.config[k] = v;
} else {
module_config.config.erase(k);
// Only bother doing anything if we didn't already have
// some new-style config.
if (module_config.config.empty()) {
+ dout(1) << "Upgrading module configuration for Mimic" << dendl;
// Upgrade luminous->mimic: migrate config-key configuration
// into main configuration store
for(auto &i : old_config) {
const std::string module_name = i.first.substr(4, i.first.substr(4).find('/'));
const std::string key = i.first.substr(last_slash + 1);
module_config.set_config(monc, module_name, key, i.second);
+ dout(4) << "Rewrote configuration module:key "
+ << module_name << ":" << key << dendl;
}
} else {
dout(10) << "Module configuration contains "