]> granicus.if.org Git - pgbouncer/commit
Fix autodb cleanup
authorMarko Kreen <markokr@gmail.com>
Tue, 29 Mar 2011 06:26:12 +0000 (09:26 +0300)
committerMarko Kreen <markokr@gmail.com>
Tue, 29 Mar 2011 06:26:12 +0000 (09:26 +0300)
commitfea8fcf8ba42581d64a12e5922260e28c7494f0a
tree03ec7d0db51752847b14b8f88e72e64f025d0050
parent30032a9f8431a7abaea6d2c325690a0470c6807d
Fix autodb cleanup

Old cleanup code was mixing up databases and pools
- as soon as one empty pool was found, the database
was tagged as 'idle', potentially later killing database
with active users.

Change the code to tag database as active when active
pool is found and later checking for inactive databases.

Reported-By: Hubert Depesz Lubaczewski
include/bouncer.h
src/janitor.c