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-e597b4017df7remotes/tags/1.0.0-rc1
parent
dc2b8063ee
commit
9009ce845a
|
@ -671,7 +671,10 @@ def ConnectDatabaseReadOnly():
|
|||
|
||||
def ConnectDatabase():
|
||||
global gCheckinDatabase
|
||||
|
||||
|
||||
if gCheckinDatabase:
|
||||
return gCheckinDatabase
|
||||
|
||||
gCheckinDatabase = CreateCheckinDatabase(
|
||||
cfg.cvsdb.host,
|
||||
cfg.cvsdb.user,
|
||||
|
|
Loading…
Reference in New Issue