summaryrefslogtreecommitdiff
path: root/mysql-test/r/drop.result
diff options
context:
space:
mode:
authorKonstantin Osipov <kostja@sun.com>2009-11-20 22:15:50 +0300
committerKonstantin Osipov <kostja@sun.com>2009-11-20 22:15:50 +0300
commitfcf6c1548e6b07a2ee9924249f926fd792155418 (patch)
tree66aefd58b6542f6203fa7087256bf220ae187648 /mysql-test/r/drop.result
parent830a7728149d7090df442e50d6ef7d413c2f0ac4 (diff)
downloadmariadb-git-fcf6c1548e6b07a2ee9924249f926fd792155418.tar.gz
Backport of:
revno: 2476.784.2 committer: davi@moksha.local timestamp: Thu 2007-09-27 16:56:27 -0300 message: Bug#28870 check that table locks are released/reset The problem is that some mysql_lock_tables error paths are not resetting the tables lock type back to TL_UNLOCK. If the lock types are not reset properly, a table might be returned to the table cache with wrong lock_type. The proposed fix is to ensure that the tables lock type is always properly reset when mysql_lock_tables fails. This is a incompatible change with respect to the process state information. sql/lock.cc: Merge mysql_lock_tables cleanup sequence and the reset_lock_data function into a single function and take steps to ensure it is always called for each error exit path. Also remove references to the redundant THD::locked variable which was almost exclusively used by this function and the same information is already on proc_info. sql/sql_class.cc: Remove references to the THD::locked variable. sql/sql_class.h: Remove the THD::locked variable. sql/sql_show.cc: Remove references to THD:locked, state_info will now default to proc_info.
Diffstat (limited to 'mysql-test/r/drop.result')
0 files changed, 0 insertions, 0 deletions