From: Kefu Chai Date: Thu, 6 Sep 2018 11:07:26 +0000 (+0800) Subject: crimson/common: add some missing method for ConfigProxy X-Git-Tag: v14.0.1~345^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4488b504d6c7911645f3381b17ef67b720168983;p=ceph.git crimson/common: add some missing method for ConfigProxy OSDMap.cc uses them when WITH_SEASTAR is defined. Signed-off-by: Kefu Chai --- diff --git a/src/crimson/common/config_proxy.h b/src/crimson/common/config_proxy.h index 53fa2b0a3ee88..a8d7eeacd2a93 100644 --- a/src/crimson/common/config_proxy.h +++ b/src/crimson/common/config_proxy.h @@ -111,6 +111,21 @@ public: return get_config().template get_val(*values, key); } + int get_all_sections(std::vector& sections) const { + return get_config().get_all_sections(sections); + } + + int get_val_from_conf_file(const std::vector& sections, + const std::string& key, std::string& out, + bool expand_meta) const { + return get_config().get_val_from_conf_file(*values, sections, key, + out, expand_meta); + } + + unsigned get_osd_pool_default_min_size() const { + return get_config().get_osd_pool_default_min_size(*values); + } + seastar::future<> set_mon_vals(const std::map& kv) { return do_change([kv, this](ConfigValues& values) { get_config().set_mon_vals(nullptr, values, obs_mgr, kv, nullptr);