summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authoranozdrin/alik@station. <>2007-10-11 17:11:12 +0400
committeranozdrin/alik@station. <>2007-10-11 17:11:12 +0400
commit7237c31698176cd732923cca811e701391ccd217 (patch)
tree0fe0c93ca75967b614fb1aaa1b624feb63405102 /sql/sql_class.cc
parent4515ccf7c074c7044c9ddf681bbc8a70821d46d5 (diff)
downloadmariadb-git-7237c31698176cd732923cca811e701391ccd217.tar.gz
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.
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 490aedad0ef..09c8a79c15e 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -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;