[mythtv-commits] mythtv commit: r23604 by cpinkham

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Fri Feb 26 02:15:03 UTC 2010


      Author: cpinkham
        Date: 2010-02-26 02:15:03 +0000 (Fri, 26 Feb 2010)
New Revision: 23604
   Changeset: http://svn.mythtv.org/trac/changeset/23604

Modified:

   branches/release-0-22-fixes/mythtv/programs/mythbackend/mainserver.cpp

Log:

Carry over [23602] from trunk.

Revert part of [18792].  That commit broke the delete code in that the
delete lock was no longer released before the truncating started.
This means that if a second recording was 'deleted' before the first
had finished truncating, then the second recording's unlink would
block until after the first truncate was finished.  If the backend
died before the first truncate finished, the second file would not
be deleted since it had never been unlinked.  This commit restores
the original functionality so that all files are allowed to be
unlinked and then the truncates happen sequentially in the background.

This commit also provides the same functionality for non-recording
files that are being deleted using truncating delete.  The
truncates are no longer being protected by the deletelock, now the
truncate is only protected by the truncate_and_close_lock, so a
long-running truncate does not hold up other files from being
unlinked.






More information about the mythtv-commits mailing list