osd: Add missing unregister_command() in OSD::shutdown()

Signed-off-by: David Zafman <david.zafman@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
David Zafman 2013-01-18 09:31:00 -08:00
parent c3266ad109
commit cfb1aa809d

View File

@ -1120,6 +1120,7 @@ int OSD::shutdown()
dout(10) << "no ops" << dendl;
cct->get_admin_socket()->unregister_command("dump_ops_in_flight");
cct->get_admin_socket()->unregister_command("dump_historic_ops");
delete admin_ops_hook;
delete historic_ops_hook;
admin_ops_hook = NULL;