From: Radoslaw Zarzynski Date: Mon, 15 Mar 2021 19:14:44 +0000 (+0000) Subject: osd: PrimaryLogPG::new_repop() doesn't depend on obc anymore. X-Git-Tag: v17.1.0~2604^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ca4bb63ae0f8dde6f0ecda2a3ba8a3527abf4058;p=ceph.git osd: PrimaryLogPG::new_repop() doesn't depend on obc anymore. Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 9b22edebbe79..a91ff016f569 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -4145,7 +4145,7 @@ void PrimaryLogPG::execute_ctx(OpContext *ctx) // issue replica writes ceph_tid_t rep_tid = osd->get_tid(); - RepGather *repop = new_repop(ctx, obc, rep_tid); + RepGather *repop = new_repop(ctx, rep_tid); issue_repop(repop, ctx); eval_repop(repop); @@ -11019,7 +11019,7 @@ void PrimaryLogPG::issue_repop(RepGather *repop, OpContext *ctx) } PrimaryLogPG::RepGather *PrimaryLogPG::new_repop( - OpContext *ctx, ObjectContextRef obc, + OpContext *ctx, ceph_tid_t rep_tid) { if (ctx->op) @@ -11097,7 +11097,7 @@ PrimaryLogPG::OpContextUPtr PrimaryLogPG::simple_opc_create(ObjectContextRef obc void PrimaryLogPG::simple_opc_submit(OpContextUPtr ctx) { - RepGather *repop = new_repop(ctx.get(), ctx->obc, ctx->reqid.tid); + RepGather *repop = new_repop(ctx.get(), ctx->reqid.tid); dout(20) << __func__ << " " << repop << dendl; issue_repop(repop, ctx.get()); eval_repop(repop); diff --git a/src/osd/PrimaryLogPG.h b/src/osd/PrimaryLogPG.h index 8ea01e986ef8..c08d7445feb8 100644 --- a/src/osd/PrimaryLogPG.h +++ b/src/osd/PrimaryLogPG.h @@ -933,7 +933,6 @@ protected: void issue_repop(RepGather *repop, OpContext *ctx); RepGather *new_repop( OpContext *ctx, - ObjectContextRef obc, ceph_tid_t rep_tid); boost::intrusive_ptr new_repop( eversion_t version,