summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2010-01-11 14:27:35 +0000
committerAndrey Hristov <andrey@php.net>2010-01-11 14:27:35 +0000
commit41ead37c041fe676a3f201d78d4761a213c322e8 (patch)
treeb3e2e4bf3facc579338bb349f235a6c09c786fe5 /ext/mysqlnd/mysqlnd.c
parent7669d7681a9036b52e440c1a43ee67ed61b10eb2 (diff)
downloadphp-git-41ead37c041fe676a3f201d78d4761a213c322e8.tar.gz
Rework the statistics macros to be reusable by external entities.
Rename handlers to triggers. Dynamically allocate space for the statistics thus allow reusability.
Diffstat (limited to 'ext/mysqlnd/mysqlnd.c')
-rw-r--r--ext/mysqlnd/mysqlnd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mysqlnd/mysqlnd.c b/ext/mysqlnd/mysqlnd.c
index 55c147b366..b3994e26c2 100644
--- a/ext/mysqlnd/mysqlnd.c
+++ b/ext/mysqlnd/mysqlnd.c
@@ -2115,7 +2115,7 @@ MYSQLND_METHOD(mysqlnd_conn, init)(MYSQLND * conn TSRMLS_DC)
DBG_ENTER("mysqlnd_conn::init");
conn->net = mysqlnd_net_init(conn->persistent TSRMLS_CC);
conn->protocol = mysqlnd_protocol_init(conn->persistent TSRMLS_CC);
- mysqlnd_stats_init(&conn->stats);
+ mysqlnd_stats_init(&conn->stats, STAT_LAST);
SET_ERROR_AFF_ROWS(conn);
@@ -2153,7 +2153,7 @@ void mysqlnd_library_init(TSRMLS_D)
mysqlnd_conn_methods = &MYSQLND_CLASS_METHOD_TABLE_NAME(mysqlnd_conn);
_mysqlnd_init_ps_subsystem();
/* Should be calloc, as mnd_calloc will reference LOCK_access*/
- mysqlnd_stats_init(&mysqlnd_global_stats);
+ mysqlnd_stats_init(&mysqlnd_global_stats, STAT_LAST);
}
}
/* }}} */