dout(10) << __func__ << " on " << rm << " op "
<< *rm->op->get_req() << dendl;
const Message *m = rm->op->get_req();
-
- Message *ack = NULL;
- eversion_t version;
-
const MOSDRepOp *req = static_cast<const MOSDRepOp*>(m);
- version = req->version;
- if (!rm->committed)
- ack = new MOSDRepOpReply(
- static_cast<const MOSDRepOp*>(m), parent->whoami_shard(),
- 0, get_osdmap()->get_epoch(), req->min_epoch, CEPH_OSD_FLAG_ACK);
+ eversion_t version = req->version;
// send ack to acker only if we haven't sent a commit already
- if (ack) {
+ if (!rm->committed) {
+ Message *ack = new MOSDRepOpReply(
+ req, parent->whoami_shard(),
+ 0, get_osdmap()->get_epoch(), req->min_epoch, CEPH_OSD_FLAG_ACK);
ack->set_priority(CEPH_MSG_PRIO_HIGH); // this better match commit priority!
get_parent()->send_message_osd_cluster(
rm->ackerosd, ack, get_osdmap()->get_epoch());