mirror of
https://github.com/ceph/ceph
synced 2024-12-19 01:46:00 +00:00
Merge pull request #21984 from liewegas/wip-24118
mon/MonClient: set configs via finisher Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
commit
a65e72a0fb
@ -374,8 +374,10 @@ void MonClient::handle_monmap(MMonMap *m)
|
||||
void MonClient::handle_config(MConfig *m)
|
||||
{
|
||||
ldout(cct,10) << __func__ << " " << *m << dendl;
|
||||
cct->_conf->set_mon_vals(cct, m->config, config_cb);
|
||||
m->put();
|
||||
finisher.queue(new FunctionContext([this, m](int r) {
|
||||
cct->_conf->set_mon_vals(cct, m->config, config_cb);
|
||||
m->put();
|
||||
}));
|
||||
got_config = true;
|
||||
map_cond.Signal();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user