Go to file
Shawn O. Pearce 1e5fc1fdf6 Fix database connection leak in git-receive-pack
git receive-pack was leaking a database connection per execution
because we we created a new context when the command started, in
order to set the access path to GIT.  This meant that Guice setup
the RequestScoped ReviewDb instance inside of the new context,
but our thread management code ran cleanup inside of the old one.
So we never actually cleaned up that per-request connection.

When making a new context recursively in an SSH command, chain the
new context's RequestCleanup into the old context's RequestCleanup,
thereby ensuring we'll clean up both contexts when the command exits.

Change-Id: I0980cafaf47728d2fe5a5b4c750a7a7217e30868
Signed-off-by: Shawn O. Pearce <sop@google.com>
2010-02-23 17:58:30 -08:00
2010-02-08 10:49:24 -08:00
2010-01-20 15:17:02 -08:00
2008-11-14 16:59:34 -08:00
2009-03-27 20:20:10 -07:00
Description
RETIRED, Gerrit as used by OpenStack
120 MiB