return;
}
- vector<OSDOp> ops;
- ceph_tid_t rep_tid = osd->get_tid();
- osd_reqid_t reqid(osd->get_cluster_msgr_name(), 0, rep_tid);
- OpContext *ctx = new OpContext(OpRequestRef(), reqid, ops, obc, this);
- ctx->op_t = pgbackend->get_transaction();
- ctx->mtime = ceph_clock_now(cct);
+ RepGather *repop = simple_repop_create(obc);
+ OpContext *ctx = repop->ctx;
ctx->at_version = get_next_version();
object_info_t& oi = ctx->new_obs.oi;
entity_inst_t nobody;
- RepGather *repop = new_repop(ctx, obc, rep_tid);
PGBackend::PGTransaction *t = ctx->op_t;
ctx->log.push_back(pg_log_entry_t(pg_log_entry_t::MODIFY, obc->obs.oi.soid,
ctx->at_version,
}
// obc ref swallowed by repop!
- issue_repop(repop, repop->ctx->mtime);
- eval_repop(repop);
- repop->put();
+ simple_repop_submit(repop);
}
ObjectContextRef ReplicatedPG::create_object_context(const object_info_t& oi,