List:Commits« Previous MessageNext Message »
From:ahristov Date:August 15 2007 1:31pm
Subject:PHP mysqlnd svn commit: r907 - trunk/mysqlnd
View as plain text  
Author: ahristov
Date: 2007-08-15 15:31:23 +0200 (Wed, 15 Aug 2007)
New Revision: 907

Modified:
   trunk/mysqlnd/mysqlnd.c
   trunk/mysqlnd/mysqlnd.h
   trunk/mysqlnd/mysqlnd_statistics.c
Log:
Add new statistic - reconnects


Modified: trunk/mysqlnd/mysqlnd.c
===================================================================
--- trunk/mysqlnd/mysqlnd.c	2007-08-15 10:53:18 UTC (rev 906)
+++ trunk/mysqlnd/mysqlnd.c	2007-08-15 13:31:23 UTC (rev 907)
@@ -471,6 +471,7 @@
 
 	if (conn && conn->state > CONN_ALLOCED) {
 		MYSQLND_INC_CONN_STATISTIC(NULL, STAT_CLOSE_IMPLICIT);
+		MYSQLND_INC_CONN_STATISTIC(NULL, STAT_RECONNECT);
 
 		mysqlnd_send_close(conn TSRMLS_CC);
 

Modified: trunk/mysqlnd/mysqlnd.h
===================================================================
--- trunk/mysqlnd/mysqlnd.h	2007-08-15 10:53:18 UTC (rev 906)
+++ trunk/mysqlnd/mysqlnd.h	2007-08-15 13:31:23 UTC (rev 907)
@@ -145,6 +145,7 @@
 	STAT_CONNECT_SUCCESS,
 	STAT_CONNECT_FAILURE,
 	STAT_CONNECT_REUSED,
+	STAT_RECONNECT,
 	STAT_CLOSE_EXPLICIT,
 	STAT_CLOSE_IMPLICIT,
 	STAT_CLOSE_DISCONNECT,

Modified: trunk/mysqlnd/mysqlnd_statistics.c
===================================================================
--- trunk/mysqlnd/mysqlnd_statistics.c	2007-08-15 10:53:18 UTC (rev 906)
+++ trunk/mysqlnd/mysqlnd_statistics.c	2007-08-15 13:31:23 UTC (rev 907)
@@ -64,6 +64,7 @@
 	{ STR_W_LEN("connect_success") },
 	{ STR_W_LEN("connect_failure") },
 	{ STR_W_LEN("connection_reused") },
+	{ STR_W_LEN("reconnect") },
 	{ STR_W_LEN("explicit_close") },
 	{ STR_W_LEN("implicit_close") },
 	{ STR_W_LEN("disconnect_close") },

Thread
PHP mysqlnd svn commit: r907 - trunk/mysqlndahristov15 Aug