summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2018-08-31 16:02:57 +0200
committerKefu Chai <kchai@redhat.com>2018-10-09 11:39:40 +0200
commit09da18c3c779f338205010b8db418a606cf3deaa (patch)
tree2de849b8e4e3dd3bae3e7677a7365ab269dc1ac2
parentcrimson/auth: add KeyRing (diff)
downloadceph-09da18c3c779f338205010b8db418a606cf3deaa.tar.xz
ceph-09da18c3c779f338205010b8db418a606cf3deaa.zip
crimson/common: add parse_config_files() to ConfigProxy
Signed-off-by: Kefu Chai <kchai@redhat.com>
-rw-r--r--src/crimson/common/config_proxy.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/crimson/common/config_proxy.h b/src/crimson/common/config_proxy.h
index a8d7eeacd2a..6a63f30f53b 100644
--- a/src/crimson/common/config_proxy.h
+++ b/src/crimson/common/config_proxy.h
@@ -132,6 +132,18 @@ public:
});
}
+ seastar::future<> parse_config_files(const std::string& conf_files) {
+ return do_change([this, conf_files](ConfigValues& values) {
+ const char* conf_file_paths =
+ conf_files.empty() ? nullptr : conf_files.c_str();
+ get_config().parse_config_files(values,
+ obs_mgr,
+ conf_file_paths,
+ &std::cerr,
+ CODE_ENVIRONMENT_DAEMON);
+ });
+ }
+
using ShardedConfig = seastar::sharded<ConfigProxy>;
private: