------
Add set_connections function (related to incomplete port from Google patch) and add call to send_user_stats and send_thread_stats (bug #728082, bug #608027). Without this call statistcs from separated thread didn't aggregated to global_[client|thread|user]_stats.
------
Every thread contains STATS diff_stats structure, which collected information about CPU_Time/other counters after every executed query.
Function "set_connection_stats" extract this information from thread to global_[client|thread|user]_stats.
Port from Google patch was incomplete - set_connection_stats missed, and information doesn't moved from THD to HASH table.
Vadim,
In fix I did following (comment from commit):
------ [client| thread| user]_stats.
Add set_connections function (related to incomplete port from Google patch) and add call to send_user_stats and send_thread_stats (bug #728082, bug #608027). Without this call statistcs from separated thread didn't aggregated to global_
------
Every thread contains STATS diff_stats structure, which collected information about CPU_Time/other counters after every executed query. _stats" extract this information from thread to global_ [client| thread| user]_stats.
Function "set_connection
Port from Google patch was incomplete - set_connection_ stats missed, and information doesn't moved from THD to HASH table.