]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/config: extract ObserverMgr from md_config_impl<>
authorKefu Chai <kchai@redhat.com>
Sun, 15 Jul 2018 10:14:43 +0000 (18:14 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 25 Jul 2018 04:59:30 +0000 (12:59 +0800)
commit773ef1170bac3a1f51c1271ab7cb5c4c8509962a
tree5571f2bf5cb292ba01031d5ff16cfce1d147acf5
parentca3a52938d109e28dc7e1879b812860dbc72a572
common/config: extract ObserverMgr from md_config_impl<>

crimson will have sharded<PGShard> (name may vary in future), and
underlying ObjectStore instances. they will be consumers of crimson
ConfigProxy, and will register them as an observer of config changes.
but as always, in crimson osd, world is sharded, each ConfigProxy will
only take care of the sharded services living on the shard which it is
in charge of. in other words, unlike alien's ConfigProxy, the
"observers" data structure is not shared, they are sharded as well. so
we need to extract the observers out of md_config_impl<>, and move it
into ConfigProxy.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/config.cc
src/common/config.h
src/common/config_obs_mgr.h [new file with mode: 0644]
src/common/config_proxy.h
src/common/config_tracker.h [new file with mode: 0644]