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 <sage@inktank.com>
This commit is contained in:
Sage Weil 2013-09-24 13:48:43 -07:00
parent b0fee96078
commit 1d67e1521c

View 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);