[mythtv] [mythtv-commits] Ticket #2011: Backend deadlock, multiple delete threads waiting on mutex.

Daniel Kristjansson danielk at cuymedia.net
Sun Jul 2 18:57:32 UTC 2006

On Sun, 2006-07-02 at 11:33 -0700, Jim Westfall wrote:

> I think there is a bug here, he's actually running out of database 
> connections.
> MainServer::DoDeleteThread() {
>   ...
>   MSqlQuery query(MSqlQuery::InitCon());
>   ...
>   TruncateAndClose(m_expirer, fd, ds->filename);
> }
> A database connection is allocated and wont be released until DoDeleteThread() 
> returns.  With enough deletes blocked waiting to be TruncateAndClosed()'d 
> it will eat up all database connections.

Hmm, that makes sense. This would keep MythTV locked up until some of
these deletes finish, if the total connection count is low...

I'll have a look..

-- Daniel

More information about the mythtv-dev mailing list