mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
A patch for BUG#31418: User locks misfunctioning after
mysql_change_user(). The problem was that THD::ull was not reset in THD::cleanup(). The fix is to reset it.
This commit is contained in:
@ -698,6 +698,7 @@ void THD::cleanup(void)
|
||||
pthread_mutex_lock(&LOCK_user_locks);
|
||||
item_user_lock_release(ull);
|
||||
pthread_mutex_unlock(&LOCK_user_locks);
|
||||
ull= NULL;
|
||||
}
|
||||
|
||||
cleanup_done=1;
|
||||
|
Reference in New Issue
Block a user