reply:
reply = new MAuthReply(proto, &response_bl, ret, s->global_id);
- mon->send_reply(m, reply);
+ mon->send_reply(op, reply);
done:
s->put();
return true;
{
MLog *m = static_cast<MLog*>(op->get_req());
dout(7) << "_updated_log for " << m->get_orig_source_inst() << dendl;
- mon->send_reply(m, new MLogAck(m->fsid, m->entries.rbegin()->seq));
+ mon->send_reply(op, new MLogAck(m->fsid, m->entries.rbegin()->seq));
}
bool LogMonitor::should_propose(double& delay)
if (pending_mdsmap.is_dne_gid(gid)) {
if (state != MDSMap::STATE_BOOT) {
dout(7) << "mds_beacon " << *m << " is not in mdsmap" << dendl;
- mon->send_reply(m, new MMDSMap(mon->monmap->fsid, &mdsmap));
+ mon->send_reply(op, new MMDSMap(mon->monmap->fsid, &mdsmap));
return true;
} else {
return false; // not booted yet.
reply:
// note time and reply
_note_beacon(m);
- mon->send_reply(m,
+ mon->send_reply(op,
new MMDSBeacon(mon->monmap->fsid, m->get_global_id(), m->get_name(),
mdsmap.get_epoch(), state, seq));
return true;
pending_mdsmap.mds_info.erase(gid);
// Respond to MDS, so that it knows it can continue to shut down
- mon->send_reply(m, new MMDSBeacon(mon->monmap->fsid, m->get_global_id(),
+ mon->send_reply(op, new MMDSBeacon(mon->monmap->fsid, m->get_global_id(),
m->get_name(), mdsmap.get_epoch(), state, seq));
} else if (state == MDSMap::STATE_DNE) {
if (!mon->osdmon()->is_writeable()) {
request_proposal(mon->osdmon());
// Respond to MDS, so that it knows it can continue to shut down
- mon->send_reply(m, new MMDSBeacon(mon->monmap->fsid, m->get_global_id(),
+ mon->send_reply(op, new MMDSBeacon(mon->monmap->fsid, m->get_global_id(),
m->get_name(), mdsmap.get_epoch(), state, seq));
} else {
info.state = state;
if (m->get_state() == MDSMap::STATE_STOPPED) {
// send the map manually (they're out of the map, so they won't get it automatic)
- mon->send_reply(m, new MMDSMap(mon->monmap->fsid, &mdsmap));
+ mon->send_reply(op, new MMDSMap(mon->monmap->fsid, &mdsmap));
} else {
- mon->send_reply(m, new MMDSBeacon(mon->monmap->fsid,
+ mon->send_reply(op, new MMDSBeacon(mon->monmap->fsid,
m->get_global_id(),
m->get_name(),
mdsmap.get_epoch(),
}
reply->oldest_map = get_first_committed();
reply->newest_map = osdmap.get_epoch();
- mon->send_reply(m, reply);
+ mon->send_reply(op, reply);
return true;
}
void _finish(int) {
MOSDMarkMeDown *m = static_cast<MOSDMarkMeDown*>(op->get_req());
osdmon->mon->send_reply(
- m,
+ op,
new MOSDMarkMeDown(
m->fsid,
m->get_target(),
dout(20) << "_pool_op_reply " << ret << dendl;
MPoolOpReply *reply = new MPoolOpReply(m->fsid, m->get_tid(),
ret, epoch, get_last_committed(), blp);
- mon->send_reply(m, reply);
+ mon->send_reply(op, reply);
}
reply->h.st.num_objects = pg_map.pg_sum.stats.sum.num_objects;
// reply
- mon->send_reply(statfs, reply);
+ mon->send_reply(op, reply);
}
bool PGMonitor::preprocess_getpoolstats(MonOpRequestRef op)
reply->pool_stats[*p] = pg_map.pg_pool_sum[poolid];
}
- mon->send_reply(m, reply);
+ mon->send_reply(op, reply);
out:
return true;
++p) {
ack->pg_stat[p->first] = make_pair(p->second.reported_seq, p->second.reported_epoch);
}
- mon->send_reply(stats, ack);
+ mon->send_reply(op, ack);
return false;
}
void PGMonitor::_updated_stats(MonOpRequestRef op, MonOpRequestRef ack_op)
{
- MPGStats *req = static_cast<MPGStats*>(op->get_req());
MPGStats *ack = static_cast<MPGStats*>(ack_op->get_req());
- dout(7) << "_updated_stats for " << req->get_orig_source_inst() << dendl;
- mon->send_reply(req, ack);
+ dout(7) << "_updated_stats for "
+ << op->get_req()->get_orig_source_inst() << dendl;
+ mon->send_reply(op, ack);
}