[mythtv-commits] Ticket #8903: Backend doesn't seem to reconnect to restarted mysql

MythTV mythtv at cvs.mythtv.org
Sat Sep 11 07:38:12 UTC 2010


#8903: Backend doesn't seem to reconnect to restarted mysql
------------------------------+---------------------------------------------
 Reporter:  beirdo            |           Owner:  beirdo    
     Type:  defect            |          Status:  closed    
 Priority:  minor             |       Milestone:  0.24      
Component:  MythTV - General  |         Version:  Trunk Head
 Severity:  medium            |      Resolution:  fixed     
 Keywords:                    |   Ticket locked:  0         
------------------------------+---------------------------------------------
Changes (by beirdo):

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


Comment:

 (In [26225]) Make MSqlQuery.exec and .prepare more resiliant to
 disappearing MySQL
 connections.

 If the database connection is down on entry, it will try to
 reconnect or fail.

 If the .exec or .prepare call fails due to "MySQL server went away" (error
 code
 2006), it will try to reconnect, and if that works, it will retry the call
 once.

 This should keep the frontend and backend (et al) from going absolutely
 crazy
 if the mysql server needs to be restarted for any reason.  Previously, all
 further queries would fail, requiring restarts.

 Fixes #8903

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/8903#comment:3>
MythTV <http://www.mythtv.org/>
MythTV Media Center


More information about the mythtv-commits mailing list