diff options
author | Ulf Wendel <uw@php.net> | 2009-10-16 13:02:01 +0000 |
---|---|---|
committer | Ulf Wendel <uw@php.net> | 2009-10-16 13:02:01 +0000 |
commit | 3eeaf566e0cc51e6ee7f48f202b5dcc5cffd6472 (patch) | |
tree | 3ca836deab9e30d1dbc50dc9074ef878a3680d27 /ext/mysqlnd/mysqlnd.c | |
parent | 4750dc35de80c5603bf7b87817ffa72500b26338 (diff) | |
download | php-git-3eeaf566e0cc51e6ee7f48f202b5dcc5cffd6472.tar.gz |
Extending mysqlnd statistics/monitoring. Now counting COM_* commands.
Diffstat (limited to 'ext/mysqlnd/mysqlnd.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd.c b/ext/mysqlnd/mysqlnd.c index ce2a37bb47..e2108461d2 100644 --- a/ext/mysqlnd/mysqlnd.c +++ b/ext/mysqlnd/mysqlnd.c @@ -406,6 +406,8 @@ mysqlnd_simple_command(MYSQLND *conn, enum php_mysqlnd_server_command command, cmd_packet.arg_len = arg_len; } + MYSQLND_INC_CONN_STATISTIC(&conn->stats, STAT_COM_QUIT + command - 1 /* because of COM_SLEEP */ ); + if (! PACKET_WRITE_ALLOCA(cmd_packet, conn)) { if (!silent) { DBG_ERR_FMT("Error while sending %s packet", mysqlnd_command_to_text[command]); |