]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: drop unused "stop" check
authorSage Weil <sage@newdream.net>
Thu, 23 Feb 2012 17:42:11 +0000 (09:42 -0800)
committerSage Weil <sage@newdream.net>
Thu, 23 Feb 2012 17:42:11 +0000 (09:42 -0800)
This is never reached: both callers handle "stop" explicitly.

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

index b11f906a272862b9b57d267ec0155337e225d975..ff39468c42c8ff95ecfaf33fb65ae20da08dddeb 100644 (file)
@@ -2353,11 +2353,6 @@ void OSD::do_command(Connection *con, tid_t tid, vector<string>& cmd, bufferlist
     osd_lock.Lock();
   }
 
-  else if (cmd[0] == "stop") {
-    ss << "got shutdown";
-    shutdown();
-  }
-
   else if (cmd[0] == "bench") {
     uint64_t count = 1 << 30;  // 1gb
     uint64_t bsize = 4 << 20;