mirror of
https://github.com/ceph/ceph
synced 2025-01-03 01:22:53 +00:00
Merge pull request #2022 from ceph/wip-mon-perf
mon: shut down perfcounters last Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
This commit is contained in:
commit
6a461a2d97
@ -676,18 +676,6 @@ void Monitor::shutdown()
|
||||
}
|
||||
|
||||
elector.shutdown();
|
||||
|
||||
if (logger) {
|
||||
cct->get_perfcounters_collection()->remove(logger);
|
||||
delete logger;
|
||||
logger = NULL;
|
||||
}
|
||||
if (cluster_logger) {
|
||||
if (cluster_logger_registered)
|
||||
cct->get_perfcounters_collection()->remove(cluster_logger);
|
||||
delete cluster_logger;
|
||||
cluster_logger = NULL;
|
||||
}
|
||||
|
||||
// clean up
|
||||
paxos->shutdown();
|
||||
@ -702,6 +690,18 @@ void Monitor::shutdown()
|
||||
|
||||
remove_all_sessions();
|
||||
|
||||
if (logger) {
|
||||
cct->get_perfcounters_collection()->remove(logger);
|
||||
delete logger;
|
||||
logger = NULL;
|
||||
}
|
||||
if (cluster_logger) {
|
||||
if (cluster_logger_registered)
|
||||
cct->get_perfcounters_collection()->remove(cluster_logger);
|
||||
delete cluster_logger;
|
||||
cluster_logger = NULL;
|
||||
}
|
||||
|
||||
// unlock before msgr shutdown...
|
||||
lock.Unlock();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user