// send ack to acker only if we haven't sent a commit already
MOSDSubOpReply *ack = new MOSDSubOpReply(m, 0, get_osdmap()->get_epoch(), CEPH_OSD_FLAG_ACK);
ack->set_priority(CEPH_MSG_PRIO_HIGH); // this better match commit priority!
- osd->cluster_messenger->send_message(ack, get_osdmap()->get_cluster_inst(rm->ackerosd));
+ osd->send_message_osd_cluster(rm->ackerosd, ack, get_osdmap()->get_epoch());
}
- rm->applied = true;
-
assert(info.last_update >= m->version);
assert(last_update_applied < m->version);
last_update_applied = m->version;
MOSDSubOpReply *commit = new MOSDSubOpReply((MOSDSubOp*)rm->op->request, 0, get_osdmap()->get_epoch(), CEPH_OSD_FLAG_ONDISK);
commit->set_last_complete_ondisk(rm->last_complete);
commit->set_priority(CEPH_MSG_PRIO_HIGH); // this better match ack priority!
- osd->cluster_messenger->send_message(commit, get_osdmap()->get_cluster_inst(rm->ackerosd));
+ osd->send_message_osd_cluster(rm->ackerosd, commit, get_osdmap()->get_epoch());
}
-
- rm->committed = true;
} else {
dout(10) << "sub_op_modify_commit " << rm << " op " << *rm->op->request
<< " from epoch " << rm->epoch_started << " < last_peering_reset "