Signed-off-by: Greg Farnum <greg@inktank.com>
assert(0 == r);
}
+void MDS::clean_up_admin_socket()
+{
+ AdminSocket *admin_socket = g_ceph_context->get_admin_socket();
+ admin_socket->unregister_command("status");
+ admin_socket->unregister_command("dump_ops_in_flight");
+ admin_socket->unregister_command("dump_historic_ops");
+ delete asok_hook;
+ asok_hook = NULL;
+}
+
const char** MDS::get_tracked_conf_keys() const
{
static const char* KEYS[] = {
//timer.join();
timer.shutdown();
+ clean_up_admin_socket();
+
// shut down cache
mdcache->shutdown();
bool asok_command(string command, cmdmap_t& cmdmap, string format,
ostream& ss);
void set_up_admin_socket();
+ void clean_up_admin_socket();
void check_ops_in_flight(); // send off any slow ops to monitor
// config observer bits
virtual const char** get_tracked_conf_keys() const;