]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: drop "stop" command
authorSage Weil <sage@newdream.net>
Thu, 23 Feb 2012 17:43:03 +0000 (09:43 -0800)
committerSage Weil <sage@newdream.net>
Thu, 23 Feb 2012 17:43:03 +0000 (09:43 -0800)
Send SIGINT.

Fixes: #1820
Signed-off-by: Sage Weil <sage@newdream.net>
src/osd/OSD.cc

index ff39468c42c8ff95ecfaf33fb65ae20da08dddeb..696ead323279cac6d832c46f3f029b5c203de1f1 100644 (file)
@@ -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);