mirror of
https://github.com/ceph/ceph
synced 2024-12-27 14:03:25 +00:00
Merge pull request #28744 from tchaikov/wip-monitor-cleanup
mon/Monitor: no need to create a local variable for capturing it Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn> Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
commit
b0e948c97b
@ -550,10 +550,9 @@ void Monitor::handle_conf_change(const ConfigProxy& conf,
|
||||
if (changed.count("mon_health_to_clog") ||
|
||||
changed.count("mon_health_to_clog_interval") ||
|
||||
changed.count("mon_health_to_clog_tick_interval")) {
|
||||
std::set<std::string> c2(changed);
|
||||
finisher.queue(new C_MonContext(this, [this, c2](int) {
|
||||
finisher.queue(new C_MonContext(this, [this, changed](int) {
|
||||
Mutex::Locker l(lock);
|
||||
health_to_clog_update_conf(c2);
|
||||
health_to_clog_update_conf(changed);
|
||||
}));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user