From 615c5ca44ba1099b2cb4fe26344fd12b75e5d3a1 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 27 Aug 2020 21:00:14 +0800 Subject: [PATCH] crimson/common: call config::update_legacy_vals() so the legacy vals are populated with the changes received from conffile. Signed-off-by: Kefu Chai --- src/crimson/common/config_proxy.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/crimson/common/config_proxy.cc b/src/crimson/common/config_proxy.cc index 520909d70c4..a853564038a 100644 --- a/src/crimson/common/config_proxy.cc +++ b/src/crimson/common/config_proxy.cc @@ -76,7 +76,11 @@ seastar::future<> ConfigProxy::parse_config_files(const std::string& conf_files) } return crimson::read_file(*path++).then([this](auto&& buf) { return do_change([buf=std::move(buf), this](ConfigValues& values) { - if (get_config().parse_buffer(values, obs_mgr, buf.get(), buf.size(), &std::cerr)) { + if (get_config().parse_buffer(values, obs_mgr, + buf.get(), buf.size(), + &std::cerr) == 0) { + get_config().update_legacy_vals(values); + } else { throw std::invalid_argument("parse error"); } }).then([] { -- 2.39.5