]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: drop MMonCommand handling
authorSage Weil <sage@redhat.com>
Tue, 10 Sep 2019 03:08:15 +0000 (22:08 -0500)
committerSage Weil <sage@redhat.com>
Fri, 4 Oct 2019 14:07:02 +0000 (09:07 -0500)
Nothing sends these.. or has in a very very long time, AFAICS.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc
src/osd/OSD.h

index aa38e1f82cdf00841f168d09cec391e078f1f5a7..9a237ed8b5c02d6edd51306f94244de9fe572bd5 100644 (file)
 #include "messages/MOSDScrub2.h"
 #include "messages/MOSDRepScrub.h"
 
-#include "messages/MMonCommand.h"
 #include "messages/MCommand.h"
 #include "messages/MCommandReply.h"
 
@@ -6765,18 +6764,6 @@ void OSD::send_beacon(const ceph::coarse_mono_clock::time_point& now)
   }
 }
 
-void OSD::handle_command(MMonCommand *m)
-{
-  if (!require_mon_peer(m)) {
-    m->put();
-    return;
-  }
-
-  Command *c = new Command(m->cmd, m->get_tid(), m->get_data(), NULL);
-  command_wq.queue(c);
-  m->put();
-}
-
 void OSD::handle_command(MCommand *m)
 {
   ConnectionRef con = m->get_connection();
index 010612947ba564ab330a0bf0fbb8c9bf04a4f111..710c83de10af5f0c4ad54a46bc975382d7146b93 100644 (file)
@@ -2015,7 +2015,6 @@ protected:
     }
   } command_wq;
 
-  void handle_command(class MMonCommand *m);
   void handle_command(class MCommand *m);
   void do_command(Connection *con, ceph_tid_t tid, vector<string>& cmd, bufferlist& data);
   int _do_command(