]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: Monitor: drop reply_command(MMonCommand *m,...)
authorJoao Eduardo Luis <joao@suse.de>
Thu, 18 Jun 2015 15:39:07 +0000 (16:39 +0100)
committerJoao Eduardo Luis <joao@suse.de>
Thu, 16 Jul 2015 17:31:22 +0000 (18:31 +0100)
Monitor commands are now op requests; always use ops when replying to
commands.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
src/mon/Monitor.cc
src/mon/Monitor.h

index 87e865686b52db5b4ecbc9c756d4403958b7d0ae..d5b7fac6784f722cfe2e29401e346b05cb0db595 100644 (file)
@@ -3006,20 +3006,6 @@ void Monitor::handle_command(MonOpRequestRef op)
     reply_command(op, r, rs, rdata, 0);
 }
 
-void Monitor::reply_command(MMonCommand *m, int rc, const string &rs, version_t version)
-{
-  bufferlist rdata;
-  reply_command(m, rc, rs, rdata, version);
-}
-
-void Monitor::reply_command(MMonCommand *m, int rc, const string &rs, bufferlist& rdata, version_t version)
-{
-  MMonCommandAck *reply = new MMonCommandAck(m->cmd, rc, rs, version);
-  reply->set_tid(m->get_tid());
-  reply->set_data(rdata);
-  send_reply(m, reply);
-}
-
 void Monitor::reply_command(MonOpRequestRef op, int rc, const string &rs, version_t version)
 {
   bufferlist rdata;
index cf4e160b3aecd732b9d8a0cdb2549dc3e02cbb51..a2469d5fcbd7e8d11b77c4c7151d5bcd456ea3f0 100644 (file)
@@ -759,8 +759,6 @@ public:
                              Formatter *f);
   void get_cluster_status(stringstream &ss, Formatter *f);
 
-  void reply_command(MMonCommand *m, int rc, const string &rs, version_t version);
-  void reply_command(MMonCommand *m, int rc, const string &rs, bufferlist& rdata, version_t version);
   void reply_command(MonOpRequestRef op, int rc, const string &rs, version_t version);
   void reply_command(MonOpRequestRef op, int rc, const string &rs, bufferlist& rdata, version_t version);