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

View 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,