[Home]

Summary:ASTERISK-14116: [patch] Correct connection time in 'realtime mysql status'
Reporter:Igor Goncharovsky (igorg)Labels:
Date Opened:2009-05-13 04:53:27Date Closed:2009-06-29 14:30:53
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Addons/res_config_mysql
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) res_mysql.cli_connected_time_fix.v1_trunk.diff
( 1) res_mysql.cli_connected_time_fix.v1.diff
Description:In situation, if connection with MySQL established while CLI command executed:

dhcp1*CLI> realtime mysql status
Connected to astdb@127.0.0.1, port 3306 with username asterisk for 38.4 years

This is for version 1.6.0.1 of asterisk-addons. In trunk ctime called after mysql_reconnect and must be equal 0.
Comments:By: Digium Subversion (svnbot) 2009-05-27 13:15:43

Repository: asterisk-addons
Revision: 931

U   branches/1.6.0/res/res_config_mysql.c

------------------------------------------------------------------------
r931 | tilghman | 2009-05-27 13:15:43 -0500 (Wed, 27 May 2009) | 6 lines

Only calculated time connected, if it actually was connected.
(closes issue ASTERISK-14116)
Reported by: IgorG
Patches:
      res_mysql.cli_connected_time_fix.v1.diff uploaded by IgorG (license 20)

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

http://svn.digium.com/view/asterisk-addons?view=rev&revision=931