summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zafman <david.zafman@inktank.com>2013-09-24 15:39:26 -0700
committerDavid Zafman <david.zafman@inktank.com>2013-09-24 15:39:26 -0700
commitc9e7e2f750cc6919959f2fd7351fa047b4c85a94 (patch)
treeeafd105647224d18276c5f775b6231726eb0f780
parentac0faaa3597faabbe07d21f7b2f58ed68fbfab53 (diff)
parent1c12eefcb5ca9fa6204d9a6f514829d539502d94 (diff)
downloadceph-c9e7e2f750cc6919959f2fd7351fa047b4c85a94.tar.gz
Merge pull request #633 from ceph/wip-repop-leaks
fix a copule of leaks of RepGather structs Reviewed-by: David Zafman <david.zafman@inktank.com>
-rw-r--r--src/osd/ReplicatedPG.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc
index a48372fe561..5cd5f538dbe 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);
@@ -4979,6 +4980,7 @@ void ReplicatedPG::handle_watch_timeout(WatchRef watch)
// obc ref swallowed by repop!
issue_repop(repop, repop->ctx->mtime);
eval_repop(repop);
+ repop->put();
}
ObjectContextRef ReplicatedPG::create_object_context(const object_info_t& oi,