[asterisk-addons-commits] qwell: trunk r424 - in /trunk: ./ res_config_mysql.c

SVN commits to the Asterisk addons project asterisk-addons-commits at lists.digium.com
Mon Aug 13 10:56:57 CDT 2007


Author: qwell
Date: Mon Aug 13 10:56:56 2007
New Revision: 424

URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=424
Log:
Merged revisions 423 via svnmerge from 
https://origsvn.digium.com/svn/asterisk-addons/branches/1.4

(closes issue #10438)
........
r423 | qwell | 2007-08-13 10:56:03 -0500 (Mon, 13 Aug 2007) | 4 lines

If we (re)connect, make sure we set the connect_time

Issue 10438

........

Modified:
    trunk/   (props changed)
    trunk/res_config_mysql.c

Propchange: trunk/
------------------------------------------------------------------------------
--- branch-1.4-merged (original)
+++ branch-1.4-merged Mon Aug 13 10:56:56 2007
@@ -1,1 +1,1 @@
-/branches/1.4:1-299,308,310,317,319,329,342,348,358,380,382,387,389,398,405,410,414,417
+/branches/1.4:1-299,308,310,317,319,329,342,348,358,380,382,387,389,398,405,410,414,417,423

Modified: trunk/res_config_mysql.c
URL: http://svn.digium.com/view/asterisk-addons/trunk/res_config_mysql.c?view=diff&rev=424&r1=423&r2=424
==============================================================================
--- trunk/res_config_mysql.c (original)
+++ trunk/res_config_mysql.c Mon Aug 13 10:56:56 2007
@@ -856,6 +856,7 @@
 		}
 
 		conn->connected = 1;
+		connect_time = time(NULL);
 
 		if (mysql_select_db(&conn->handle, conn->name) != 0) {
 			ast_log(LOG_WARNING, "MySQL RealTime: Unable to select database: %s. Still Connected (%d) - %s.\n", conn->name, mysql_errno(&conn->handle), mysql_error(&conn->handle));




More information about the asterisk-addons-commits mailing list