[mythtv-commits] Ticket #1660: Database updates in firewirerecorder.cpp cause dropped data

MythTV mythtv at cvs.mythtv.org
Sat Jun 9 02:59:38 UTC 2007


#1660: Database updates in firewirerecorder.cpp cause dropped data
----------------------------------------+-----------------------------------
 Reporter:  ajlill at ajlc.waterloo.on.ca  |        Owner:  cpinkham
     Type:  defect                      |       Status:  closed  
 Priority:  minor                       |    Milestone:  0.21    
Component:  mythtv                      |      Version:  head    
 Severity:  medium                      |   Resolution:  fixed   
----------------------------------------+-----------------------------------
Changes (by cpinkham):

  * status:  reopened => closed
  * resolution:  => fixed


Comment:

 (In [13619]) Move the seektable writing code out from the main recorder
 threads and into
 the TVRec main thread.  Now the recorder threads fill in the positionMap
 and
 positionMapDelta and the TVRec class calls RecorderBase::SavePositionMap()
 to consume the data.

 If it is determined that we should write the delta to the database, a copy
 of
 the delta map is made and the positionMapLock is unlocked.  This allows us
 to
 keep the position maps for as short of time as possible and allows the DB
 update to happen without impacting the recorders collecting data.

 As part of this, I moved the *Recorder::SavePositionMap() code into
 RecorderBase because the only difference between the three was the
 positionmap type.  The type is now stored in a variable set by the three
 *Recorder classes affected.

 Closes #1660.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/1660#comment:25>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list