summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Farnum <greg@inktank.com>2013-09-26 15:01:48 -0700
committerGreg Farnum <greg@inktank.com>2013-09-26 15:09:20 -0700
commite5fcb156875a0658440bd0ddc7714bd87c613d3d (patch)
tree95d3d08b5bac6522c1006bd1264c23144ae45443
parent396fce7cc4643ed1cf7ba5b044ee965e5c47088c (diff)
downloadceph-dnm-wip-promote.tar.gz
fixup 'ReplicatedPG: allow CopyOps to optionally clean up themselves'dnm-wip-promote
-rw-r--r--src/osd/ReplicatedPG.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc
index 04906ee1240..22c06713111 100644
--- a/src/osd/ReplicatedPG.cc
+++ b/src/osd/ReplicatedPG.cc
@@ -4307,6 +4307,7 @@ void ReplicatedPG::process_copy_chunk(hobject_t oid, tid_t tid, int r)
tid_t rep_tid = osd->get_tid();
osd_reqid_t reqid(osd->get_cluster_msgr_name(), 0, rep_tid);
OpContext *tctx = new OpContext(OpRequestRef(), reqid, ops, &ctx->obc->obs, ctx->obc->ssc, this);
+ tctx->copy_op = cop;
tctx->mtime = ceph_clock_now(g_ceph_context);
RepGather *repop = new_repop(tctx, ctx->obc, rep_tid);
finish_copy(tctx);