struct C_SetManifestRefCountDone : public Context {
PrimaryLogPGRef pg;
- PrimaryLogPG::ManifestOpRef mop;
hobject_t soid;
uint64_t offset;
- ceph_tid_t tid;
+ ceph_tid_t tid = 0;
C_SetManifestRefCountDone(PrimaryLogPG *p,
- PrimaryLogPG::ManifestOpRef mop, hobject_t soid, uint64_t offset) :
- pg(p), mop(mop), soid(soid), offset(offset), tid(0) {}
+ hobject_t soid, uint64_t offset) :
+ pg(p), soid(soid), offset(offset) {}
void finish(int r) override {
if (r == -ECANCELED)
return;
auto target_oid = p->first;
auto offset = c.first;
auto length = c.second.length;
- C_SetManifestRefCountDone* fin = new C_SetManifestRefCountDone(this, mop, ctx->obs->oi.soid, offset);
+ auto* fin = new C_SetManifestRefCountDone(this, ctx->obs->oi.soid, offset);
ceph_tid_t tid = refcount_manifest(ctx->obs->oi.soid, target_oid,
refcount_t::INCREMENT_REF, fin, std::nullopt);
fin->tid = tid;
ctx->op_finishers[ctx->current_osd_subop_num].reset(
new SetManifestFinisher(osd_op));
ManifestOpRef mop = std::make_shared<ManifestOp>(new RefCountCallback(ctx, osd_op));
- C_SetManifestRefCountDone* fin = new C_SetManifestRefCountDone(this, mop, soid, 0);
+ auto* fin = new C_SetManifestRefCountDone(this, soid, 0);
ceph_tid_t tid = refcount_manifest(soid, target,
refcount_t::INCREMENT_REF, fin, std::nullopt);
fin->tid = tid;