so the legacy vals are populated with the changes received from conffile.
Signed-off-by: Kefu Chai <kchai@redhat.com>
}
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([] {