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 | 9b8d026d86341829e1f18cfdc581ab1ab8655ce2 (patch) | |
| tree | ebb412ad71df143de86786a9d247d8a481907536 /ext/mysqlnd/mysqlnd_structs.h | |
| parent | 4a549fbb3d0a1f88e3f2775b952de1130259454c (diff) | |
| download | php-git-9b8d026d86341829e1f18cfdc581ab1ab8655ce2.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; |
