]> granicus.if.org Git - php/commitdiff
Fix wrong macro name
authorAndrey Hristov <andrey@php.net>
Wed, 18 Nov 2015 09:35:10 +0000 (10:35 +0100)
committerAndrey Hristov <andrey@php.net>
Wed, 18 Nov 2015 09:35:10 +0000 (10:35 +0100)
ext/mysqlnd/mysqlnd.h
ext/mysqlnd/mysqlnd_connection.c

index c2585b1d00a8f6104b803c9ebe05b45f0de98958..42a0285569816f0458e3d6ac0dde4c5fd79cf845 100644 (file)
@@ -267,7 +267,7 @@ PHPAPI void                 _mysqlnd_get_client_stats(MYSQLND_STATS * stats, zval *return_valu
 #define MYSQLND_INC_GLOBAL_STATISTIC(statistic) \
        MYSQLND_INC_STATISTIC(MYSQLND_G(collect_statistics), mysqlnd_global_stats, (statistic))
 
-#define MYSQLND_DEC_CONN_STATISTIC(conn_stats, statistic) \
+#define MYSQLND_DEC_GLOBAL_STATISTIC(statistic) \
        MYSQLND_DEC_STATISTIC(MYSQLND_G(collect_statistics), mysqlnd_global_stats, (statistic))
 
 #define MYSQLND_INC_GLOBAL_STATISTIC_W_VALUE2(statistic1, value1, statistic2, value2) \
index 0520b76f12c55b3b8f7aa3752b5381dfbb696a0c..32121640310abf7590c58850d1ca61b15b0ae8f2 100644 (file)
@@ -1259,9 +1259,9 @@ MYSQLND_METHOD(mysqlnd_conn_data, send_close)(MYSQLND_CONN_DATA * const conn)
        DBG_INF_FMT("state=%u", state);
 
        if (state >= CONN_READY) {
-               MYSQLND_DEC_CONN_STATISTIC(conn->stats, STAT_OPENED_CONNECTIONS);
+               MYSQLND_DEC_GLOBAL_STATISTIC(STAT_OPENED_CONNECTIONS);
                if (conn->persistent) {
-                       MYSQLND_DEC_CONN_STATISTIC(conn->stats, STAT_OPENED_PERSISTENT_CONNECTIONS);
+                       MYSQLND_DEC_GLOBAL_STATISTIC(STAT_OPENED_PERSISTENT_CONNECTIONS);
                }
        }
        switch (state) {