mirror of
https://github.com/php/php-src.git
synced 2024-12-14 20:33:36 +08:00
Fix wrong macro name
This commit is contained in:
parent
ee396aa566
commit
b7b4364269
@ -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) \
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user