mariadb/storage
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
..
archive Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
blackhole Merge 5.5.24 back into main 5.5. 2012-05-07 22:20:42 +02:00
csv Updated/added copyright headers 2012-02-16 10:48:16 +01:00
example Bug#11815557 60269: MYSQL SHOULD REJECT ATTEMPTS TO CREATE SYSTEM 2012-04-11 15:53:17 +05:30
federated Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
heap Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
innobase Bug #16305265 HANG IN RENAME TABLE 2013-02-27 12:44:58 -06:00
myisam Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
myisammrg Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
ndb Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
perfschema Bug#16060864 SEGMENTATION FAULT IN PERFORMANCE_SCHEMA WITH HISTORY SIZE 0 2013-01-02 11:00:55 +01:00