Merge pull request #15302 from xiexingguo/wip-fix-reg-leak

common/ceph_context: fix leak of registered commands on exit

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2017-05-27 21:01:52 -05:00 committed by GitHub
commit 5750523e85

View File

@ -642,11 +642,13 @@ CephContext::~CephContext()
delete _plugin_registry;
_admin_socket->unregister_command("perfcounters_dump");
_admin_socket->unregister_command("perf dump");
_admin_socket->unregister_command("1");
_admin_socket->unregister_command("perf dump");
_admin_socket->unregister_command("perfcounters_schema");
_admin_socket->unregister_command("perf schema");
_admin_socket->unregister_command("perf histogram dump");
_admin_socket->unregister_command("2");
_admin_socket->unregister_command("perf schema");
_admin_socket->unregister_command("perf histogram schema");
_admin_socket->unregister_command("perf reset");
_admin_socket->unregister_command("config show");
_admin_socket->unregister_command("config set");