]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: fix leak of RepGather on large-object COPY_FROM
authorSage Weil <sage@inktank.com>
Tue, 24 Sep 2013 20:48:43 +0000 (13:48 -0700)
committerSage Weil <sage@inktank.com>
Tue, 24 Sep 2013 20:48:43 +0000 (13:48 -0700)
new_repop() gives us a ref; we need to release it, just as we do in
execute_ctx().

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc

index a48372fe5611f31e539ffd7e17ac3954211269ce..3185dde775bb3a89ad80c569982b6393d42e11f0 100644 (file)
@@ -4260,6 +4260,7 @@ void ReplicatedPG::process_copy_chunk(hobject_t oid, tid_t tid, int r)
 
     issue_repop(repop, repop->ctx->mtime);
     eval_repop(repop);
+    repop->put();
 
     dout(10) << __func__ << " fetching more" << dendl;
     _copy_some(ctx, cop);