From 1d67e1521c2902b9426579cd2c7a6c4997700984 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 24 Sep 2013 13:48:43 -0700 Subject: [PATCH] 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 --- src/osd/ReplicatedPG.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index a48372fe561..3185dde775b 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);