From: Sage Weil Date: Tue, 24 Sep 2013 20:48:43 +0000 (-0700) Subject: osd/ReplicatedPG: fix leak of RepGather on large-object COPY_FROM X-Git-Tag: v0.71~83^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1d67e1521c2902b9426579cd2c7a6c4997700984;p=ceph.git osd/ReplicatedPG: fix leak of RepGather on large-object COPY_FROM new_repop() gives us a ref; we need to release it, just as we do in execute_ctx(). Signed-off-by: Sage Weil --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index a48372fe5611..3185dde775bb 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -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);