1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

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)
This commit is contained in:
Sergei Golubchik
2013-11-11 16:17:32 +01:00
parent 80a523dbfb
commit f486f49e8d
10 changed files with 76 additions and 27 deletions

View File

@@ -1556,7 +1556,7 @@ public:
/* Slave applier execution context */
Relay_log_info* rli_slave;
void reset_for_next_command(bool calculate_userstat);
void reset_for_next_command();
/*
Constant for THD::where initialization in the beginning of every query.