mariadb/storage/innobase/handler
unknown e1e43631f8 Bug #16305265 HANG IN RENAME TABLE
This is a deadlock that will also be fixed in the server by
Bug #11844915 - HANG IN THDVAR MUTEX ACQUISITION.
So this is a simple alternate method of fixing the same problem,
but from within InnoDB.

The simple change is to make rename table start a transaction
before locking dict_sys->mutex since thd_supports_xa() can call
THDVAR which can lock a mutex, LOCK_global_system_variables, that
is used in the server by many other activities.  At least one of
those, sys_var::update(), can call back into InnoDB and try to
lock dict_sys->mutex while holding LOCK_global_system_variables.

The other bug fix for 11844915 eliminates the use of
LOCK_global_system_variables for calls to THDVAR.

Approved by marko in http://rb.no.oracle.com/rb/r/2000/
2013-02-27 12:44:58 -06:00
..
ha_innodb.cc Bug #16305265 HANG IN RENAME TABLE 2013-02-27 12:44:58 -06:00
ha_innodb.h Bug #14500557 CRASH WHEN USING LONG INNODB INDEXES 2012-09-04 14:33:56 +05:30
handler0alter.cc Merge mysql-5.1 to mysql-5.5. 2012-11-15 22:11:03 +02:00
i_s.cc Bug#14756795 SELECT FROM NEW INNODB I_S TABLES CRASHES SERVER 2013-01-30 10:53:43 +05:30
i_s.h Bug #13113026 INFORMATION_SCHEMA.INNODB_BUFFER_PAGE_LRUFROM 5.6 BACKPORT 2012-07-25 10:48:16 +05:30