diff options
author | Andrey Hristov <andrey@php.net> | 2010-01-11 14:27:35 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2010-01-11 14:27:35 +0000 |
commit | 41ead37c041fe676a3f201d78d4761a213c322e8 (patch) | |
tree | b3e2e4bf3facc579338bb349f235a6c09c786fe5 /ext/mysqlnd/mysqlnd_structs.h | |
parent | 7669d7681a9036b52e440c1a43ee67ed61b10eb2 (diff) | |
download | php-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_structs.h')
-rw-r--r-- | ext/mysqlnd/mysqlnd_structs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_structs.h b/ext/mysqlnd/mysqlnd_structs.h index 963a87dfd3..65611cce58 100644 --- a/ext/mysqlnd/mysqlnd_structs.h +++ b/ext/mysqlnd/mysqlnd_structs.h @@ -214,8 +214,9 @@ typedef void (*mysqlnd_stat_trigger)(MYSQLND_STATS * stats, enum_mysqlnd_collect struct st_mysqlnd_stats { - uint64_t values[STAT_LAST]; + uint64_t *values; mysqlnd_stat_trigger *triggers; + size_t count; zend_bool in_trigger; #ifdef ZTS MUTEX_T LOCK_access; |