[mythtv-commits] Ticket #10341: Wrong default value for DB WOL retry

MythTV noreply at mythtv.org
Wed Feb 15 16:40:11 UTC 2012


#10341: Wrong default value for DB WOL retry
----------------------------------------+-------------------------
     Reporter:  xavier.hervy@…          |      Owner:  danielk
         Type:  Patch - Bug Fix         |     Status:  new
     Priority:  minor                   |  Milestone:  0.25
    Component:  MythTV - Mythtv-setup   |    Version:  Master Head
     Severity:  medium                  |   Keywords:
Ticket locked:  0                       |
----------------------------------------+-------------------------
 In mysql.txt, it is said that the default value is 5 when not specified
 but In the UI the default value is 0.

 In the UI the number of retry is between 1 and 10 (also I don't know why
 It could not be 0)

 There is few way to fix this:

 1. The easiest way is to replace line 894 of mythdb.cpp by:
 params.wolRetry   = settings.GetNumSetting("WOLsqlConnectRetry",5);

 2. a better  would be to load the default setting first and replace line
 894 (and other similar one)  by:
 params.wolRetry   =
 settings.GetNumSetting("WOLsqlConnectRetry",params.wolRetry);


 This patch implement the later

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/10341>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list