mon/MonClient: drop unused param

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2017-05-23 16:54:34 +08:00
parent 9dd2bc8974
commit b758fa3c98
2 changed files with 3 additions and 3 deletions

View File

@ -1003,7 +1003,7 @@ void MonClient::handle_mon_command_ack(MMonCommandAck *ack)
ack->put();
}
int MonClient::_cancel_mon_command(uint64_t tid, int r)
int MonClient::_cancel_mon_command(uint64_t tid)
{
assert(monc_lock.is_locked());
@ -1053,7 +1053,7 @@ void MonClient::start_mon_command(const vector<string>& cmd,
public:
C_CancelMonCommand(uint64_t tid, MonClient *monc) : tid(tid), monc(monc) {}
void finish(int r) override {
monc->_cancel_mon_command(tid, -ETIMEDOUT);
monc->_cancel_mon_command(tid);
}
};
r->ontimeout = new C_CancelMonCommand(r->tid, this);

View File

@ -432,7 +432,7 @@ private:
void _send_command(MonCommand *r);
void _resend_mon_commands();
int _cancel_mon_command(uint64_t tid, int r);
int _cancel_mon_command(uint64_t tid);
void _finish_command(MonCommand *r, int ret, string rs);
void _finish_auth();
void handle_mon_command_ack(MMonCommandAck *ack);