From 7d15a5a9e26f42f73cdb6dc8c4c112a628614983 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 11 Jan 2018 09:30:35 -0600 Subject: [PATCH] common/options: replace FLAG_SAFE with FLAG_{RUNTIME,STARTUP,CLUSTER_CREATE,DAEMON_CREATE} Signed-off-by: Sage Weil --- src/common/config.cc | 2 +- src/common/options.cc | 74 +++++++++++++++++++++---------------------- src/common/options.h | 18 +++++------ 3 files changed, 46 insertions(+), 48 deletions(-) diff --git a/src/common/config.cc b/src/common/config.cc index bd46466cf91..35d43c306d7 100644 --- a/src/common/config.cc +++ b/src/common/config.cc @@ -136,7 +136,7 @@ md_config_t::md_config_t(bool is_daemon) stringify(subsys.get_gather_level(i))); string desc = string("Debug level for ") + subsys.get_name(i); opt.set_description(desc.c_str()); - opt.set_safe(); + opt.set_flag(Option::FLAG_RUNTIME); opt.set_long_description("The value takes the form 'N' or 'N/M' where N and M are values between 0 and 99. N is the debug level to log (all values below this are included), and M is the level to gather and buffer in memory. In the event of a crash, the most recent items <= M are dumped to the log file."); opt.set_subsys(i); opt.set_validator([](std::string *value, std::string *error_message) { diff --git a/src/common/options.cc b/src/common/options.cc index 2e535964814..f4cace82d4f 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -763,7 +763,7 @@ std::vector