[mythtv] [mythtv-commits] Ticket #7046: libmysql deadlock

David Madsen david.madsen at gmail.com
Fri Oct 23 21:09:05 UTC 2009

>  This lock was originally put in a long time ago to hande the fact
>  that QSqlQuery::prepare() was not thread safe in Qt versions prior
>  to v3.3.2.  The Qt v4 version is thread safe.  We have seen issues
>  with deadlocks in mythbackend due to this lock, so we are removing
>  the static so that different threads do not lock each other trying
>  to prepare a query.  If there are no issues seen after the lock is
>  made non-static, we'll commit a larger patch which removes the
>  prepareLock totally.

Here'a quick update; I've been running with a very similar patch to this
since earlier this week after discussing the issue with Chris in IRC.  I've
beat up on it quite a bit to try to uncover any issues, and thus far haven't
run into any side effects from this change.  I haven't yet removed the lock
entirely though.

Just out of curiosity, is this change planned to be backported for the 0.22

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-dev/attachments/20091023/b0a6d7eb/attachment.htm>

More information about the mythtv-dev mailing list