From 49588e9462d1971238095eab5e86e020a2b09730 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 23 Feb 2012 09:43:03 -0800 Subject: [PATCH] osd: drop "stop" command Send SIGINT. Fixes: #1820 Signed-off-by: Sage Weil --- src/osd/OSD.cc | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index ff39468c42c8..696ead323279 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -2290,13 +2290,6 @@ void OSD::handle_command(MMonCommand *m) if (!require_mon_peer(m)) return; - // special case shutdown, since shutdown() stops the command_tp - if (m->cmd[0] == "stop") { - shutdown(); - m->put(); - return; - } - Command *c = new Command(m->cmd, m->get_tid(), m->get_data(), NULL); command_wq.queue(c); m->put(); @@ -2321,13 +2314,6 @@ void OSD::handle_command(MCommand *m) return; } - // special case shutdown, since shutdown() stops the command_tp - if (m->cmd[0] == "stop") { - shutdown(); - m->put(); - return; - } - Command *c = new Command(m->cmd, m->get_tid(), m->get_data(), con); command_wq.queue(c); -- 2.47.3