]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/common: add some missing method for ConfigProxy
authorKefu Chai <kchai@redhat.com>
Thu, 6 Sep 2018 11:07:26 +0000 (19:07 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 6 Sep 2018 14:03:33 +0000 (22:03 +0800)
OSDMap.cc uses them when WITH_SEASTAR is defined.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/common/config_proxy.h

index 53fa2b0a3ee88f3e7c71ac5b332329584ed741dd..a8d7eeacd2a9310c11abbb088d2f9edb442ec8e0 100644 (file)
@@ -111,6 +111,21 @@ public:
     return get_config().template get_val<T>(*values, key);
   }
 
+  int get_all_sections(std::vector<std::string>& sections) const {
+    return get_config().get_all_sections(sections);
+  }
+
+  int get_val_from_conf_file(const std::vector<std::string>& 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<std::string,std::string>& kv) {
     return do_change([kv, this](ConfigValues& values) {
       get_config().set_mon_vals(nullptr, values, obs_mgr, kv, nullptr);