mirror of
https://github.com/ceph/ceph
synced 2025-02-23 02:57:21 +00:00
osd/PrimaryLogPG: remove unused reply creation path
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
2042f661b6
commit
6c10712959
@ -2589,10 +2589,6 @@ void PrimaryLogPG::record_write_error(OpRequestRef op, const hobject_t &soid,
|
|||||||
auto m = op->get_req<MOSDOp>();
|
auto m = op->get_req<MOSDOp>();
|
||||||
int flags = m->get_flags() & (CEPH_OSD_FLAG_ACK | CEPH_OSD_FLAG_ONDISK);
|
int flags = m->get_flags() & (CEPH_OSD_FLAG_ACK | CEPH_OSD_FLAG_ONDISK);
|
||||||
MOSDOpReply *reply = orig_reply.detach();
|
MOSDOpReply *reply = orig_reply.detach();
|
||||||
if (reply == nullptr) {
|
|
||||||
reply = new MOSDOpReply(m, r, pg->get_osdmap_epoch(),
|
|
||||||
flags, true);
|
|
||||||
}
|
|
||||||
ldpp_dout(pg, 10) << " sending commit on " << *m << " " << reply << dendl;
|
ldpp_dout(pg, 10) << " sending commit on " << *m << " " << reply << dendl;
|
||||||
pg->osd->send_message_osd_client(reply, m->get_connection());
|
pg->osd->send_message_osd_client(reply, m->get_connection());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user