mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Backport patch for Bug#31222 (com_% global status counters behave randomly
with mysql_change_user) to 5.0.
This commit is contained in:
@@ -391,6 +391,10 @@ void THD::init_for_queries()
|
||||
|
||||
void THD::change_user(void)
|
||||
{
|
||||
pthread_mutex_lock(&LOCK_status);
|
||||
add_to_status(&global_status_var, &status_var);
|
||||
pthread_mutex_unlock(&LOCK_status);
|
||||
|
||||
cleanup();
|
||||
cleanup_done= 0;
|
||||
init();
|
||||
|
Reference in New Issue
Block a user