// meta expands could have modified anything. Copy it all out again.
update_legacy_vals(values);
_apply_changes(values, proxy, NULL);
+ values.changed.clear();
}
}
values.set_logging(opt.subsys, actual_val.c_str());
} else {
// normal option, advertise the change.
- changed.insert(opt.name);
+ values.changed.insert(opt.name);
}
}
/// true if we are a daemon (as per CephContext::code_env)
const bool is_daemon;
- /* Maps configuration options to the observer listening for them. */
- typedef std::multimap <std::string, md_config_obs_impl<lock_policy>*> obs_map_t;
-
- /* Set of configuration options that have changed since the last
- * apply_changes */
- typedef std::set < std::string > changed_set_t;
-
/*
* Mapping from legacy config option names to class members
*/
string do_show_config_value;
obs_map_t observers;
- changed_set_t changed;
vector<Option> subsys_options;
#include "msg/msg_types.h"
class ConfigValues {
- using changed_set_t = std::set<std::string>;
using values_t = std::map<std::string, map<int32_t,Option::value_t>>;
values_t values;
// for populating md_config_impl::legacy_values in ctor
string cluster;
ceph::logging::SubsystemMap subsys;
bool no_mon_config = false;
+ // Set of configuration options that have changed since the last
+ // apply_changes
+ using changed_set_t = std::set<std::string>;
+ changed_set_t changed;
// This macro block defines C members of the md_config_t struct
// corresponding to the definitions in legacy_config_opts.h.