]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: 'stop' command
authorSage Weil <sage@newdream.net>
Fri, 7 May 2010 23:40:49 +0000 (16:40 -0700)
committerSage Weil <sage@newdream.net>
Mon, 10 May 2010 20:40:39 +0000 (13:40 -0700)
src/osd/OSD.cc

index 16d0a0d1d3bea87fd14e76fa81d8db97e0eb1037..fbe64ef2de1227de39c62362ba66e42bb40fc0bd 100644 (file)
@@ -1555,7 +1555,10 @@ void OSD::handle_command(MMonCommand *m)
   dout(20) << "handle_command args: " << m->cmd << dendl;
   if (m->cmd[0] == "injectargs")
     parse_config_option_string(m->cmd[1]);
-  else 
+  else if (m->cmd[0] == "stop") {
+    dout(0) << "got shutdown" << dendl;
+    shutdown();
+  } else
     dout(0) << "unrecognized command! " << m->cmd << dendl;
   m->put();
 }