From: Joao Eduardo Luis Date: Wed, 17 Jun 2015 14:53:12 +0000 (+0100) Subject: mon: Monitor: reply_command() wrapper for ops X-Git-Tag: v9.1.0~535^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=65b5144ad7e40ae7aa179e023b0557db9e70d56c;p=ceph.git mon: Monitor: reply_command() wrapper for ops Signed-off-by: Joao Eduardo Luis --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 4e4f7a61478a..42d29e053598 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -3020,6 +3020,12 @@ void Monitor::reply_command(MMonCommand *m, int rc, const string &rs, bufferlist send_reply(m, reply); } +void Monitor::reply_command(MonOpRequestRef op, int rc, const string &rs, version_t version) +{ + bufferlist rdata; + reply_command(op, rc, rs, rdata, version); +} + void Monitor::reply_command(MonOpRequestRef op, int rc, const string &rs, bufferlist& rdata, version_t version) { diff --git a/src/mon/Monitor.h b/src/mon/Monitor.h index 52b7c5e67495..38638b8c3bef 100644 --- a/src/mon/Monitor.h +++ b/src/mon/Monitor.h @@ -761,6 +761,7 @@ public: 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);