diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-11-11 16:17:32 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-11-11 16:17:32 +0100 |
commit | f486f49e8dca72023f7312da138d71eb504a16f4 (patch) | |
tree | 684663b42e3d97ab6e2ad85f113ec05e58eb2735 /sql/event_data_objects.cc | |
parent | 80a523dbfbeab628a98391d77656442d58ae15a4 (diff) | |
download | mariadb-git-f486f49e8dca72023f7312da138d71eb504a16f4.tar.gz |
MDEV-4824 userstats - wrong user statistics
(and valgrind warnings)
* move thd userstat initialization to the same function
that was adding thd userstat to global counters.
* initialize thd->start_bytes_received in THD::init
(when thd->userstat_running is set)
Diffstat (limited to 'sql/event_data_objects.cc')
-rw-r--r-- | sql/event_data_objects.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/event_data_objects.cc b/sql/event_data_objects.cc index c41194d1a8d..dfd35583581 100644 --- a/sql/event_data_objects.cc +++ b/sql/event_data_objects.cc @@ -1337,7 +1337,7 @@ Event_job_data::execute(THD *thd, bool drop) DBUG_ENTER("Event_job_data::execute"); - mysql_reset_thd_for_next_command(thd, 0); + mysql_reset_thd_for_next_command(thd); /* MySQL parser currently assumes that current database is either |