]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/config: make update_legacy_vals() public
authorKefu Chai <kchai@redhat.com>
Thu, 27 Aug 2020 12:58:11 +0000 (20:58 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 31 Aug 2020 13:12:53 +0000 (21:12 +0800)
so crimson can call it in `ConfigProxy::parse_config_files()` after calling
`get_config().parse_buffer()`. so the legacy vals are populated with the
changes received from conffile.

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

index e71425292b444b8e8c29f262f802f4ed8ae4372c..a44fab0a4ee52dea8b5ba3a4f6f79cabeb3ff117 100644 (file)
@@ -124,6 +124,7 @@ public:
   int parse_buffer(ConfigValues& values, const ConfigTracker& tracker,
                   const char* buf, size_t len,
                   std::ostream *warnings);
+  void update_legacy_vals(ConfigValues& values);
   // Absorb config settings from the environment
   void parse_env(unsigned entity_type,
                 ConfigValues& values, const ConfigTracker& tracker,
@@ -294,7 +295,6 @@ private:
   void assign_member(member_ptr_t ptr, const Option::value_t &val);
 
 
-  void update_legacy_vals(ConfigValues& values);
   void update_legacy_val(ConfigValues& values,
                         const Option &opt,
                         member_ptr_t member);