From: Sage Weil Date: Tue, 24 Sep 2013 20:49:59 +0000 (-0700) Subject: osd/ReplicatedPG: fix leak of RepGather on watch timeout X-Git-Tag: v0.71~83^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F633%2Fhead;p=ceph.git osd/ReplicatedPG: fix leak of RepGather on watch timeout new_repop() gives us a ref; we need to release it, just as we do in execute_ctx(). Backport: dumpling Signed-off-by: Sage Weil --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 3185dde775bb..5cd5f538dbe4 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -4980,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,