mirror of
https://github.com/ceph/ceph
synced 2025-02-23 11:07:35 +00:00
Merge pull request #14896 from liewegas/wip-19638
osd: stop MgrClient callbacks on shutdown Reviewed-by: Josh Durgin <jdurgin@redhat.com>
This commit is contained in:
commit
0bded75235
@ -95,6 +95,7 @@ public:
|
||||
|
||||
void set_pgstats_cb(std::function<MPGStats*()> cb_)
|
||||
{
|
||||
Mutex::Locker l(lock);
|
||||
pgstats_cb = cb_;
|
||||
}
|
||||
|
||||
|
@ -2947,6 +2947,8 @@ int OSD::shutdown()
|
||||
cct->_conf->set_val("debug_ms", "100");
|
||||
cct->_conf->apply_changes(NULL);
|
||||
|
||||
mgrc.set_pgstats_cb(std::function<MPGStats*()>());
|
||||
|
||||
service.start_shutdown();
|
||||
|
||||
// stop sending work to pgs. this just prevents any new work in _process
|
||||
|
Loading…
Reference in New Issue
Block a user