As with #4465, be careful to reserve a db connection before acquiring a lock, instead of trying to obtain a connection within the critical section as this might lead to a deadlock.
As with #4465, be careful to reserve a db connection before acquiring a lock, instead of trying to obtain a connection within the critical section as this might lead to a deadlock.


git-svn-id: f68c6b3b1dcd5d00a2560c384475aaef3bc99487@9439 af82e41b-90c4-0310-8c96-b1721e28e2e2

exocad/exotrac,moreati/trac-gitsvn,moreati/trac-gitsvn,exocad/exotrac,dafrito/trac-mirror,dafrito/trac-mirror,moreati/trac-gitsvn,exocad/exotrac,exocad/exotrac,moreati/trac-gitsvn,dafrito/trac-mirror,dafrito/trac-mirror