]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/common: apply config changes also on shard.0
authorYingxin <yingxin.cheng@intel.com>
Fri, 17 Aug 2018 22:07:29 +0000 (06:07 +0800)
committerYingxin <yingxin.cheng@intel.com>
Mon, 20 Aug 2018 08:17:45 +0000 (16:17 +0800)
Signed-off-by: Yingxin <yingxin.cheng@intel.com>
src/crimson/common/config_proxy.h

index 807ca958d5e39b3c0390bf16c62f4230ef2d9ea2..a6016fc10ffcae953341ab8e6eba49e47074e746 100644 (file)
@@ -48,6 +48,8 @@ class ConfigProxy : public seastar::peering_sharded_service<ConfigProxy>
       // always apply the new settings synchronously on the owner shard, to
       // avoid racings with other do_change() calls in parallel.
       owner.values.reset(new_values);
+      owner.obs_mgr.apply_changes(owner.values->changed,
+                                  owner, nullptr);
 
       return seastar::parallel_for_each(boost::irange(1u, seastar::smp::count),
                                         [&owner, new_values] (auto cpu) {