]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/config: move _apply_changes() calls up into ConfigProxy
authorKefu Chai <kchai@redhat.com>
Sun, 15 Jul 2018 09:50:12 +0000 (17:50 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 24 Jul 2018 02:17:46 +0000 (10:17 +0800)
commit9bfc03672063e86b0a1391b35a33e31193575214
tree33e2bbc77f93ac00863973264b2b922be1e84ca6
parente406d8eb9e1deb801ecb346169eaaf96adbb4b53
common/config: move _apply_changes() calls up into ConfigProxy

see also the previous the commit, to reuse injectargs() and
set_mon_vals() in seastar's ConfigProxy, we need to move apply_changes()
call out of them, as this call is implemented differently in seastar's
ConfigProxy.

finalize_reexpand_meta() is not used by OSD at this moment, so we leave
it as it is for now.

* move _apply_changes() calls up into ConfigProxy
* move update_legacy_vals() out of _apply_changes() into the
callers of the latter. as it changes "values", in seastar's ConfigProxy,
it belongs to the first step of changing a config value

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