[mythtv-commits] Ticket #2011: Backend deadlock, multiple delete threads waiting on mutex.
MythTV
mythtv at cvs.mythtv.org
Mon Jul 3 18:31:39 UTC 2006
#2011: Backend deadlock, multiple delete threads waiting on mutex.
---------------------+------------------------------------------------------
Reporter: stuarta | Owner: danielk
Type: defect | Status: reopened
Priority: minor | Milestone: 0.20
Component: mythtv | Version: head
Severity: medium | Resolution:
---------------------+------------------------------------------------------
Comment (by danielk):
(In [10370]) Refs #2011. Fixes "deadlock" when many deletes are pending.
The delete method was grabbing a DB connection before waiting for it's
turn to actually delete the file, and then releasing it after the delete
completed. If a large file delete is scheduled, followed by many deletes
of any sized files, such as after channel flipping in LiveTV, then the
number of open connections grows quickly. This can make MythTV
unresponsive until the big delete completes because most MythTV actions
require a DB connection and none (or too few) are available. With this
change the delete function lets the DB connection go before it blocks on
the delete mutex.
--
Ticket URL: <http://cvs.mythtv.org/trac/ticket/2011>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list