Signed-off-by: Sage Weil <sage@redhat.com>
md_config_t::md_config_t(bool is_daemon)
- : cluster(""),
- lock("md_config_t", true, false)
+ : is_daemon(is_daemon),
+ cluster(""),
+ lock("md_config_t", true, false)
{
// Load the compile-time list of Option into
// a map so that we can resolve keys quickly.
bool md_config_t::*,
entity_addr_t md_config_t::*,
uuid_d md_config_t::*> member_ptr_t;
+ /// 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_t*> obs_map_t;