From d7706993cbc8a6786c4402b112ba42e8a4dc3b61 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 27 Aug 2020 20:58:11 +0800 Subject: [PATCH] common/config: make update_legacy_vals() public 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 --- src/common/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/config.h b/src/common/config.h index e71425292b44..a44fab0a4ee5 100644 --- a/src/common/config.h +++ b/src/common/config.h @@ -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); -- 2.47.3