void PrimaryLogPG::do_pg_op(OpRequestRef op)
{
- // NOTE: this is non-const because we modify the OSDOp.outdata in
- // place
- MOSDOp *m = static_cast<MOSDOp *>(op->get_nonconst_req());
+ const MOSDOp *m = static_cast<const MOSDOp *>(op->get_req());
ceph_assert(m->get_type() == CEPH_MSG_OSD_OP);
dout(10) << "do_pg_op " << *m << dendl;
osd->send_message_osd_client(reply, m->get_connection());
}
-int PrimaryLogPG::do_scrub_ls(MOSDOp *m, OSDOp *osd_op)
+int PrimaryLogPG::do_scrub_ls(const MOSDOp *m, OSDOp *osd_op)
{
if (m->get_pg() != info.pgid.pgid) {
dout(10) << " scrubls pg=" << m->get_pg() << " != " << info.pgid << dendl;
void do_osd_op_effects(OpContext *ctx, const ConnectionRef& conn);
private:
- int do_scrub_ls(MOSDOp *op, OSDOp *osd_op);
+ int do_scrub_ls(const MOSDOp *op, OSDOp *osd_op);
hobject_t earliest_backfill() const;
bool check_src_targ(const hobject_t& soid, const hobject_t& toid) const;