[mythtv-commits] mythtv commit: r10370 by danielk

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Mon Jul 3 18:31:37 UTC 2006


      Author: danielk
        Date: 2006-07-03 18:31:35 +0000 (Mon, 03 Jul 2006)
New Revision: 10370
   Changeset: http://cvs.mythtv.org/trac/changeset/10370

Modified:

   trunk/mythtv/programs/mythbackend/mainserver.cpp
   trunk/mythtv/programs/mythbackend/mainserver.h

Log:

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.






More information about the mythtv-commits mailing list