diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 695efd54099..193db5e02f1 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -2589,10 +2589,6 @@ void PrimaryLogPG::record_write_error(OpRequestRef op, const hobject_t &soid, auto m = op->get_req(); int flags = m->get_flags() & (CEPH_OSD_FLAG_ACK | CEPH_OSD_FLAG_ONDISK); 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; pg->osd->send_message_osd_client(reply, m->get_connection()); }