]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: fix leak of RepGather on watch timeout 633/head
authorSage Weil <sage@inktank.com>
Tue, 24 Sep 2013 20:49:59 +0000 (13:49 -0700)
committerSage Weil <sage@inktank.com>
Tue, 24 Sep 2013 20:49:59 +0000 (13:49 -0700)
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 <sage@inktank.com>
src/osd/ReplicatedPG.cc

index 3185dde775bb3a89ad80c569982b6393d42e11f0..5cd5f538dbe43ac714a62709b2825fecce40daef 100644 (file)
@@ -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,