vector<string> cmd;
MMonCommand() : PaxosServiceMessage(MSG_MON_COMMAND, 0) {}
- MMonCommand(const uuid_d &f, version_t v) :
- PaxosServiceMessage(MSG_MON_COMMAND, v),
- fsid(f) { }
+ MMonCommand(const uuid_d &f)
+ : PaxosServiceMessage(MSG_MON_COMMAND, 0),
+ fsid(f)
+ { }
private:
~MMonCommand() {}
i != mds_info.end();
++i) {
m->cmd = args_vec;
- mon->send_command(i->second.get_inst(), m->cmd, get_last_committed());
+ mon->send_command(i->second.get_inst(), m->cmd);
r = 0;
}
if (r == -ENOENT) {
if (!errno && who >= 0) {
if (mdsmap.is_up(who)) {
m->cmd = args_vec;
- mon->send_command(mdsmap.get_inst(who), m->cmd, get_last_committed());
+ mon->send_command(mdsmap.get_inst(who), m->cmd);
r = 0;
ss << "ok";
} else {
void MonClient::_send_command(MonCommand *r)
{
- version_t last_seen_version = 0;
-
if (r->target_rank >= 0 &&
r->target_rank != monmap.get_rank(cur_mon)) {
ldout(cct, 10) << "_send_command " << r->tid << " " << r->cmd
}
ldout(cct, 10) << "_send_command " << r->tid << " " << r->cmd << dendl;
- MMonCommand *m = new MMonCommand(monmap.fsid, last_seen_version);
+ MMonCommand *m = new MMonCommand(monmap.fsid);
m->set_tid(r->tid);
m->cmd = r->cmd;
m->set_data(r->inbl);
}
void Monitor::send_command(const entity_inst_t& inst,
- const vector<string>& com, version_t version)
+ const vector<string>& com)
{
dout(10) << "send_command " << inst << "" << com << dendl;
- MMonCommand *c = new MMonCommand(monmap->fsid, version);
+ MMonCommand *c = new MMonCommand(monmap->fsid);
c->cmd = com;
try_send_message(c, inst);
}
void waitlist_or_zap_client(Message *m);
void send_command(const entity_inst_t& inst,
- const vector<string>& com, version_t version);
+ const vector<string>& com);
public:
struct C_Command : public Context {
ss << messenger->get_myaddr();
cmd.push_back("\"addr\":\"" + ss.str() + "\"");
- MMonCommand *m = new MMonCommand(monc->get_fsid(), last_seen_osdmap_version);
+ MMonCommand *m = new MMonCommand(monc->get_fsid());
m->cmd = cmd;
monc->send_mon_message(m);