[Home]

Summary:ASTERISK-10624: [patch] Add MYSQL_OPT_RECONNECT for mysql client version
Reporter:Yuri (ys)Labels:
Date Opened:2007-10-26 08:53:23Date Closed:2007-10-26 09:46:48
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Addons/cdr_mysql
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) cdr_addon_mysql.c.diff
Description:
This trivial patch is prevent periodical error message, If used mysql lib version 5.0.13 and upper:

ERROR[35338]: cdr_addon_mysql.c:160 mysql_log: cdr_mysql: Server has gone away. Attempting to reconnect.


Rem: "Asterisk Version field" must by 1.4.4, bot not in list.


****** ADDITIONAL INFORMATION ******

http://dev.mysql.com/doc/refman/5.0/en/mysql-options.html

MYSQL_OPT_RECONNECT (argument type: my_bool *)
Enable or disable automatic reconnection to the server if the connection is found to have been lost. Reconnect has been off by default since MySQL 5.0.3; this option is new in 5.0.13 and provides a way to set reconnection behavior explicitly.
Comments:By: Digium Subversion (svnbot) 2007-10-26 09:39:03

Repository: asterisk-addons
Revision: 475

U   branches/1.4/cdr_addon_mysql.c

------------------------------------------------------------------------
r475 | tilghman | 2007-10-26 09:39:02 -0500 (Fri, 26 Oct 2007) | 5 lines

Auto reconnect database on connection failure (fixes missing CDRs)
Reported by ys.
Fixed by ys.
Closes issue ASTERISK-10624

------------------------------------------------------------------------

By: Digium Subversion (svnbot) 2007-10-26 09:46:48

Repository: asterisk-addons
Revision: 476

_U  trunk/
U   trunk/cdr_addon_mysql.c

------------------------------------------------------------------------
r476 | tilghman | 2007-10-26 09:46:47 -0500 (Fri, 26 Oct 2007) | 13 lines

Merged revisions 475 via svnmerge from
https://origsvn.digium.com/svn/asterisk-addons/branches/1.4

........
r475 | tilghman | 2007-10-26 09:40:32 -0500 (Fri, 26 Oct 2007) | 5 lines

Auto reconnect database on connection failure (fixes missing CDRs)
Reported by ys.
Fixed by ys.
Closes issue ASTERISK-10624

........

------------------------------------------------------------------------