it's better this way, as MgrClient is more like an internal consumer
of the services offered by OSD, instead of service privider. it could
prevent future problem if we can stop it earlier in the shutdown
process.
see also: http://tracker.ceph.com/issues/19638
Signed-off-by: Kefu Chai <kchai@redhat.com>
cct->_conf->set_val("debug_ms", "100");
cct->_conf->apply_changes(NULL);
- mgrc.set_pgstats_cb(std::function<MPGStats*()>());
+ // stop MgrClient earlier as it's more like an internal consumer of OSD
+ mgrc.shutdown();
service.start_shutdown();
store = 0;
dout(10) << "Store synced" << dendl;
- mgrc.shutdown();
monc->shutdown();
osd_lock.Unlock();