summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2013-11-11 16:17:32 +0100
committerSergei Golubchik <sergii@pisem.net>2013-11-11 16:17:32 +0100
commitf486f49e8dca72023f7312da138d71eb504a16f4 (patch)
tree684663b42e3d97ab6e2ad85f113ec05e58eb2735 /sql/sql_class.h
parent80a523dbfbeab628a98391d77656442d58ae15a4 (diff)
downloadmariadb-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/sql_class.h')
-rw-r--r--sql/sql_class.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index dab57a680f3..e9665959d04 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -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.