fixed bug #460835, "Too many connections in cvsdbadmin update"

* lib/cvsdb.py (ConnectDatabase): now returns an existing database
  connection instead of always creating a new one.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@685 8cb11bc2-c004-0410-86c3-e597b4017df7
remotes/tags/1.0.0-rc1
rey4 2003-07-24 00:26:33 +00:00
parent dc2b8063ee
commit 9009ce845a
1 changed files with 4 additions and 1 deletions

View File

@ -671,7 +671,10 @@ def ConnectDatabaseReadOnly():
def ConnectDatabase():
global gCheckinDatabase
if gCheckinDatabase:
return gCheckinDatabase
gCheckinDatabase = CreateCheckinDatabase(
cfg.cvsdb.host,
cfg.cvsdb.user,