File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,15 @@ class ConfigProxy : public seastar::peering_sharded_service<ConfigProxy>
9696 return values.get ();
9797 }
9898
99+ void get_config_bl (uint64_t have_version,
100+ ceph::buffer::list *bl,
101+ uint64_t *got_version) {
102+ get_config ().get_config_bl (get_config_values (), have_version,
103+ bl, got_version);
104+ }
105+ void get_defaults_bl (ceph::buffer::list *bl) {
106+ get_config ().get_defaults_bl (get_config_values (), bl);
107+ }
99108 // required by sharded<>
100109 seastar::future<> start ();
101110 seastar::future<> stop () {
Original file line number Diff line number Diff line change @@ -75,6 +75,8 @@ void Client::ms_handle_connect(
7575 // ask for the mgrconfigure message
7676 auto m = crimson::make_message<MMgrOpen>();
7777 m->daemon_name = local_conf ()->name .get_id ();
78+ local_conf ().get_config_bl (0 , &m->config_bl , &last_config_bl_version);
79+ local_conf ().get_defaults_bl (&m->config_defaults_bl );
7880 return conn->send (std::move (m));
7981 } else {
8082 return seastar::now ();
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ class Client : public crimson::net::Dispatcher {
5656 crimson::net::ConnectionRef conn;
5757 seastar::timer<seastar::lowres_clock> report_timer;
5858 crimson::common::Gated gate;
59+ uint64_t last_config_bl_version = 0 ;
5960};
6061
6162inline std::ostream& operator <<(std::ostream& out, const Client& client) {
You can’t perform that action at this time.
0 commit comments