mariadb/sql
Venkatesh Duggirala 2870bd7423 Bug#17283409 4-WAY DEADLOCK: ZOMBIES, PURGING BINLOGS,
SHOW PROCESSLIST, SHOW BINLOGS

Problem:  A deadlock was occurring when 4 threads were
involved in acquiring locks in the following way
Thread 1: Dump thread ( Slave is reconnecting, so on
              Master, a new dump thread is trying kill
              zombie dump threads. It acquired thread's
              LOCK_thd_data and it is about to acquire
              mysys_var->current_mutex ( which LOCK_log)
Thread 2: Application thread is executing show binlogs and
               acquired LOCK_log and it is about to acquire
               LOCK_index.
Thread 3: Application thread is executing Purge binary logs
               and acquired LOCK_index and it is about to
               acquire LOCK_thread_count.
Thread 4: Application thread is executing show processlist
               and acquired LOCK_thread_count and it is
               about to acquire zombie dump thread's
               LOCK_thd_data.
Deadlock Cycle:
     Thread 1 -> Thread 2 -> Thread 3-> Thread 4 ->Thread 1

The same above deadlock was observed even when thread 4 is
executing 'SELECT * FROM information_schema.processlist' command and
acquired LOCK_thread_count and it is about to acquire zombie
dump thread's LOCK_thd_data.

Analysis:
There are four locks involved in the deadlock.  LOCK_log,
LOCK_thread_count, LOCK_index and LOCK_thd_data.
LOCK_log, LOCK_thread_count, LOCK_index are global mutexes
where as LOCK_thd_data is local to a thread.
We can divide these four locks in two groups.
Group 1 consists of LOCK_log and LOCK_index and the order
should be LOCK_log followed by LOCK_index.
Group 2 consists of other two mutexes
LOCK_thread_count, LOCK_thd_data and the order should
be LOCK_thread_count followed by LOCK_thd_data.
Unfortunately, there is no specific predefined lock order defined
to follow in the MySQL system when it comes to locks across these
two groups. In the above problematic example,
there is no problem in the way we are acquiring the locks
if you see each thread individually.
But If you combine all 4 threads, they end up in a deadlock.

Fix: 
Since everything seems to be fine in the way threads are taking locks,
In this patch We are changing the duration of the locks in Thread 4
to break the deadlock. i.e., before the patch, Thread 4
('show processlist' command) mysqld_list_processes()
function acquires LOCK_thread_count for the complete duration
of the function and it also acquires/releases
each thread's LOCK_thd_data.

LOCK_thread_count is used to protect addition and
deletion of threads in global threads list. While show
process list is looping through all the existing threads,
it will be a problem if a thread is exited but there is no problem
if a new thread is added to the system. Hence a new mutex is
introduced "LOCK_thd_remove" which will protect deletion
of a thread from global threads list. All threads which are
getting exited should acquire LOCK_thd_remove
followed by LOCK_thread_count. (It should take LOCK_thread_count
also because other places of the code still thinks that exit thread
is protected with LOCK_thread_count. In this fix, we are changing
only 'show process list' query logic )
(Eg: unlink_thd logic will be protected with
LOCK_thd_remove).

Logic of mysqld_list_processes(or file_schema_processlist)
will now be protected with 'LOCK_thd_remove' instead of
'LOCK_thread_count'.

Now the new locking order after this patch is:
LOCK_thd_remove -> LOCK_thd_data -> LOCK_log ->
LOCK_index -> LOCK_thread_count
2014-05-08 18:13:01 +05:30
..
examples Updated/added copyright headers 2011-06-30 17:31:31 +02:00
share Updated/added copyright header. Added line "use is subject to license terms" 2014-02-17 18:19:04 +05:30
add_errmsg
authors.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
client_settings.h Bug#12897501 REPLICATION DOES NOT SUPPORT WINDOWS AUTH PLUG-IN 2011-09-14 16:10:18 +02:00
CMakeLists.txt Updated/added copyright headers 2014-01-06 10:52:35 +05:30
contributors.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
custom_conf.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
datadict.cc Manual merge from mysql-5.5-bugfixing to mysql-5.5-runtime. 2010-08-18 13:29:04 +02:00
datadict.h Bug#49907: ALTER TABLE ... TRUNCATE PARTITION does not wait for 2010-08-16 14:53:30 +02:00
db.opt Bug#16062056 REMOVE THE "DUMMY.BAK" FILE FROM THE TEST DATABASE, AND ADD DB.OPT 2013-02-25 10:42:40 +01:00
debug_sync.cc Bug#16729109: FIX COMPILATION WARNINGS WITH GCC 4.8 2013-06-14 10:52:23 +02:00
debug_sync.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
derror.cc Merge from 5.1. 2011-05-21 10:21:08 +02:00
derror.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
des_key_file.cc Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
des_key_file.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
discover.cc Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
discover.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
event_data_objects.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
event_data_objects.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
event_db_repository.cc Bug #14036214 MYSQLD CRASHES WHEN EXECUTING UPDATE IN TRX WITH 2012-10-08 19:40:30 +05:30
event_db_repository.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
event_parse_data.cc Updated/added copyright headers 2011-07-04 01:25:49 +02:00
event_parse_data.h Updated/added copyright headers 2011-07-04 01:25:49 +02:00
event_queue.cc Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
event_queue.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
event_scheduler.cc Bug#17283409 4-WAY DEADLOCK: ZOMBIES, PURGING BINLOGS, 2014-05-08 18:13:01 +05:30
event_scheduler.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
events.cc Updated/added copyright headers 2014-01-06 10:52:35 +05:30
events.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
field.cc Addendum #1 to the fix for bug #18359924 2014-04-11 10:42:30 +03:00
field.h Bug#17632978 SLAVE CRASHES IF ROW EVENT IS CORRUPTED 2013-12-17 22:11:22 +05:30
field_conv.cc Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
filesort.cc Bug #17307201 : FAILING ASSERTION: PREBUILT->TRX->CONC_STATE == 1 2014-01-09 11:17:51 +05:30
filesort.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
frm_crypt.cc Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
frm_crypt.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
gen_lex_hash.cc Merge of patch for Bug#13928675 from mysql-5.1. 2012-08-07 19:07:13 +05:30
gstream.cc Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
gstream.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
ha_ndbcluster.cc Merging into mysql-5.5.16-release. 2011-08-15 20:12:11 +02:00
ha_ndbcluster.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
ha_ndbcluster_binlog.cc Fix for bug#14188793 - "DEADLOCK CAUSED BY ALTER TABLE DOEN'T CLEAR 2013-08-20 13:12:34 +04:00
ha_ndbcluster_binlog.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
ha_ndbcluster_cond.cc Updated/added copyright headers 2014-01-06 10:52:35 +05:30
ha_ndbcluster_cond.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
ha_ndbcluster_tables.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
ha_partition.cc backport of Bug#17401628 2013-11-20 13:13:18 +01:00
ha_partition.h Bug #16051817 GOT ERROR 124 FROM STORAGE ENGINE 2013-10-21 12:07:02 +05:30
handler.cc Bug#17474166 - EXECUTING STATEMENT LIKE 'SHOW ENGINE INNODB' 2013-10-09 13:32:31 +05:30
handler.h Bug #14036214 MYSQLD CRASHES WHEN EXECUTING UPDATE IN TRX WITH 2012-10-08 19:40:30 +05:30
hash_filo.cc Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
hash_filo.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
hostname.cc Updated/added copyright headers 2014-01-06 10:52:35 +05:30
hostname.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
init.cc Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
init.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
item.cc Merge from 5.1 to 5.5 2013-03-28 19:17:28 +05:30
item.h Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
item_buff.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
item_cmpfunc.cc Bug#11766191:INVALID MEMORY READ IN DO_DIV_MOD WITH DOUBLY ASSIGNED VARIABLES 2013-05-22 14:36:43 +05:30
item_cmpfunc.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
item_create.cc Updated/added copyright headers 2011-07-04 01:25:49 +02:00
item_create.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
item_func.cc BUG#17994219: CREATE TABLE .. SELECT PRODUCES INVALID STRUCTURE, 2014-04-28 16:28:09 +05:30
item_func.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
item_geofunc.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
item_geofunc.h Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
item_row.cc Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
item_row.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
item_strfunc.cc Bug#12368495 CRASH AND/OR VALGRIND ERRORS WITH REVERSE FUNCTION AND CHARSET CONVERTS 2013-11-05 10:02:57 +01:00
item_strfunc.h Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
item_subselect.cc Bug#17029399 - CRASH IN ITEM_REF::FIX_FIELDS WITH TRIGGER ERRORS 2013-08-23 16:56:17 +05:30
item_subselect.h Updated/added copyright headers 2012-02-15 17:21:38 +01:00
item_sum.cc Updated/added copyright headers 2014-01-06 10:52:35 +05:30
item_sum.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
item_timefunc.cc Bug#13986705 CRASH IN GET_INTERVAL_VALUE() WITH DATE CALCULATION WITH UTF32 INTERVALS 2012-05-21 10:47:12 +02:00
item_timefunc.h Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
item_xmlfunc.cc Updated/added copyright headers 2014-01-06 10:52:35 +05:30
item_xmlfunc.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
key.cc Updated/added copyright headers 2014-01-06 10:52:35 +05:30
key.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
keycaches.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
keycaches.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
lex.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
lex_symbol.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
lock.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
lock.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
log.cc Bug#17283409 4-WAY DEADLOCK: ZOMBIES, PURGING BINLOGS, 2014-05-08 18:13:01 +05:30
log.h Bug#14238406 NEW COMPILATION WARNINGS WITH GCC 4.7 (-WERROR=NARROWING) 2012-06-29 13:36:01 +02:00
log_event.cc Bug#16814264: FILTER OUT THE PERFORMANCE_SCHEMA RELAY LOG EVENTS FROM RELAY LOG 2014-01-31 04:25:39 +05:30
log_event.h BUG#17066269 2014-01-09 12:53:49 +00:00
log_event_old.cc Fix for bug#14188793 - "DEADLOCK CAUSED BY ALTER TABLE DOEN'T CLEAR 2013-08-20 13:12:34 +04:00
log_event_old.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
main.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
mdl.cc Bug#13058122 - DML, LOCK/UNLOCK TABLES AND SELECT LEAD TO 2012-08-07 11:48:36 +05:30
mdl.h Bug #15954872 "MAKE MDL SUBSYSTEM AND TABLE DEFINITION CACHE 2012-12-11 22:04:30 +04:00
mem_root_array.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
message.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
message.mc
message.rc
mf_iocache.cc Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
MSG00001.bin
my_decimal.cc Updated/added copyright headers 2011-07-03 17:47:37 +02:00
my_decimal.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
mysqld.cc Bug#17283409 4-WAY DEADLOCK: ZOMBIES, PURGING BINLOGS, 2014-05-08 18:13:01 +05:30
mysqld.h Bug#17283409 4-WAY DEADLOCK: ZOMBIES, PURGING BINLOGS, 2014-05-08 18:13:01 +05:30
mysqld_suffix.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
net_serv.cc Bug#17474166 - EXECUTING STATEMENT LIKE 'SHOW ENGINE INNODB' 2013-10-09 13:32:31 +05:30
nt_servc.cc Bug#11754011: 45546: START WINDOWS SERVICE, THEN EXECUTE WHAT IS NEEDED. 2011-12-13 17:44:19 +02:00
nt_servc.h Bug#11754011: 45546: START WINDOWS SERVICE, THEN EXECUTE WHAT IS NEEDED. 2011-12-13 17:44:19 +02:00
opt_range.cc Fixing compilation error. Post push fix for Bug#17909656 2014-05-07 16:55:03 +05:30
opt_range.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
opt_sum.cc Bug #14036214 MYSQLD CRASHES WHEN EXECUTING UPDATE IN TRX WITH 2012-10-08 19:40:30 +05:30
parse_file.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
parse_file.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
partition_element.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
partition_info.cc Bug#16860588:CRASH WITH CREATE TABLE ... LIKE .. 2013-08-12 11:09:33 +02:00
partition_info.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
password.c Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
procedure.cc Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
procedure.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
protocol.cc Bug#14466617 - INVALID WRITES AND/OR CRASH WITH USER 2012-11-07 19:08:33 +05:30
protocol.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
records.cc Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
records.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
repl_failsafe.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
repl_failsafe.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
replication.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
rpl_constants.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
rpl_filter.cc Updated/added copyright headers 2014-01-06 10:52:35 +05:30
rpl_filter.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
rpl_handler.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
rpl_handler.h Updated/added copyright headers 2012-02-16 10:48:16 +01:00
rpl_injector.cc Updated/added copyright headers 2012-02-16 10:48:16 +01:00
rpl_injector.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
rpl_mi.cc Updated/added copyright headers 2012-02-16 10:48:16 +01:00
rpl_mi.h Updated/added copyright headers 2012-02-16 10:48:16 +01:00
rpl_record.cc Bug#17632978 SLAVE CRASHES IF ROW EVENT IS CORRUPTED 2013-12-17 22:11:22 +05:30
rpl_record.h Bug#17632978 SLAVE CRASHES IF ROW EVENT IS CORRUPTED 2013-12-17 22:11:22 +05:30
rpl_record_old.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
rpl_record_old.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
rpl_reporting.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
rpl_reporting.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
rpl_rli.cc Fix for bug#14188793 - "DEADLOCK CAUSED BY ALTER TABLE DOEN'T CLEAR 2013-08-20 13:12:34 +04:00
rpl_rli.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
rpl_tblmap.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
rpl_tblmap.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
rpl_utility.cc Bug17632978 SLAVE CRASHES IF ROW EVENT IS CORRUPTED 2013-12-18 13:52:49 +05:30
rpl_utility.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
scheduler.cc Bug#17283409 4-WAY DEADLOCK: ZOMBIES, PURGING BINLOGS, 2014-05-08 18:13:01 +05:30
scheduler.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
set_var.cc Updated/added copyright headers 2014-01-06 10:52:35 +05:30
set_var.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
sha2.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
signal_handler.cc Updated/added copyright headers 2014-01-06 10:52:35 +05:30
slave.cc Bug#17283409 4-WAY DEADLOCK: ZOMBIES, PURGING BINLOGS, 2014-05-08 18:13:01 +05:30
slave.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sp.cc Bug #14036214 MYSQLD CRASHES WHEN EXECUTING UPDATE IN TRX WITH 2012-10-08 19:40:30 +05:30
sp.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sp_cache.cc Updated/added copyright headers 2012-02-16 10:48:16 +01:00
sp_cache.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
sp_head.cc Fix for bug#14188793 - "DEADLOCK CAUSED BY ALTER TABLE DOEN'T CLEAR 2013-08-20 13:12:34 +04:00
sp_head.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
sp_pcontext.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sp_pcontext.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sp_rcontext.cc Bug#14640599 MEMORY LEAK WHEN EXECUTING STORED ROUTINE EXCEPTION HANDLER 2012-10-04 16:15:13 +02:00
sp_rcontext.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
spatial.cc merge 2013-03-28 17:41:22 +02:00
spatial.h merge 2013-03-28 17:41:22 +02:00
sql_acl.cc Updated/added copyright headers 2014-01-06 10:52:35 +05:30
sql_acl.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_admin.cc Fix for bug#14188793 - "DEADLOCK CAUSED BY ALTER TABLE DOEN'T CLEAR 2013-08-20 13:12:34 +04:00
sql_admin.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
sql_alter.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_alter.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_analyse.cc Updated/added copyright headers 2014-01-06 10:52:35 +05:30
sql_analyse.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
sql_array.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
sql_audit.cc Updated/added copyright headers 2014-01-06 10:52:35 +05:30
sql_audit.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
sql_base.cc Fix for bug#14188793 - "DEADLOCK CAUSED BY ALTER TABLE DOEN'T CLEAR 2013-08-20 13:12:34 +04:00
sql_base.h Fix for bug#14188793 - "DEADLOCK CAUSED BY ALTER TABLE DOEN'T CLEAR 2013-08-20 13:12:34 +04:00
sql_binlog.cc Updated/added copyright headers 2014-01-06 10:52:35 +05:30
sql_binlog.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_bitmap.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
sql_builtin.cc.in Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_cache.cc Fix for bug#14188793 - "DEADLOCK CAUSED BY ALTER TABLE DOEN'T CLEAR 2013-08-20 13:12:34 +04:00
sql_cache.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_callback.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_class.cc Bug#17283409 4-WAY DEADLOCK: ZOMBIES, PURGING BINLOGS, 2014-05-08 18:13:01 +05:30
sql_class.h BUG#18054998 - BACKPORT FIX FOR BUG#11765785 to 5.5 2014-01-13 12:04:16 +05:30
sql_client.cc Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
sql_connect.cc Updated/added copyright headers 2014-01-06 10:52:35 +05:30
sql_connect.h Bug#14003080:65104: MAX_USER_CONNECTIONS WITH PROCESSLIST EMPTY 2012-05-28 11:14:43 +05:30
sql_const.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_crypt.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_crypt.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_cursor.cc Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
sql_cursor.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
sql_db.cc WL#7076: Backporting wl6715 to support both formats 2013-08-23 09:07:09 +05:30
sql_db.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_delete.cc Bug#13586591 RQG GRAMMAR CONF/ENGINES/ENGINE_STRESS.YY 2012-06-12 15:04:57 +02:00
sql_delete.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_derived.cc Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
sql_derived.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_do.cc Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
sql_do.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_error.cc Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
sql_error.h Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
sql_handler.cc Fix for bug#14188793 - "DEADLOCK CAUSED BY ALTER TABLE DOEN'T CLEAR 2013-08-20 13:12:34 +04:00
sql_handler.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_help.cc Updated/added copyright headers 2014-01-06 10:52:35 +05:30
sql_help.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_hset.h Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
sql_insert.cc Bug#17283409 4-WAY DEADLOCK: ZOMBIES, PURGING BINLOGS, 2014-05-08 18:13:01 +05:30
sql_insert.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_lex.cc Bug#16870783 RECENT REGRESSION: CRASH WITH GROUP_CONCAT AND INVALID SEPARATOR 2013-09-09 12:43:08 +02:00
sql_lex.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
sql_list.cc Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
sql_list.h merge 5.1 => 5.5 2012-09-12 08:59:44 +02:00
sql_load.cc Backport from trunk: 2014-04-23 17:01:35 +02:00
sql_load.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_locale.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_locale.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_manager.cc Updated/added copyright headers 2014-01-06 10:52:35 +05:30
sql_manager.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_parse.cc BUG#18054998 - BACKPORT FIX FOR BUG#11765785 to 5.5 2014-01-13 12:04:16 +05:30
sql_parse.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_partition.cc Bug#17909699: WRONG RESULTS WITH PARTITION BY LIST COLUMNS() 2014-05-06 11:05:37 +02:00
sql_partition.h Bug#16274455: CAN NOT ACESS PARTITIONED TABLES WHEN 2013-02-14 17:03:49 +01:00
sql_partition_admin.cc Updated/added copyright headers 2014-01-06 10:52:35 +05:30
sql_partition_admin.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_plist.h Fix for bug#12695572 - "IMPROVE MDL PERFORMANCE IN PRE-VISTA 2011-11-15 22:00:14 +04:00
sql_plugin.cc Bug#17638477 UNINSTALL AND INSTALL SEMI-SYNC PLUGIN CAUSES SLAVES TO BREAK 2014-05-05 22:22:15 +05:30
sql_plugin.h Bug#14238406 NEW COMPILATION WARNINGS WITH GCC 4.7 (-WERROR=NARROWING) 2012-06-29 13:36:01 +02:00
sql_plugin_services.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_prepare.cc Bug#16346241 - SERVER CRASH IN ITEM_PARAM::QUERY_VAL_STR 2013-08-28 14:54:53 +05:30
sql_prepare.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_priv.h BUG#14629727: USER_VAR_EVENT IS MISSING RANGE CHECKS 2012-10-21 20:34:41 +01:00
sql_profile.cc Merge mysql-5.1 --> mysql-5.5 2012-10-12 22:59:21 +02:00
sql_profile.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
sql_reload.cc Merge from mysql-5.5.18-release 2011-11-17 09:00:58 +01:00
sql_reload.h BUG#46166 2010-12-07 16:11:13 +00:00
sql_rename.cc Bug #14227431: CHARACTER SET MISMATCH WHEN ALTERING FOREIGN KEYS 2013-06-12 09:35:33 +02:00
sql_rename.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_repl.cc Bug#17283409 4-WAY DEADLOCK: ZOMBIES, PURGING BINLOGS, 2014-05-08 18:13:01 +05:30
sql_repl.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
sql_select.cc Bug #18167356: EXPLAIN W/ EXISTS(SELECT* UNION SELECT*) 2014-04-28 21:07:27 +05:30
sql_select.h Bug#16394084: LOOSE INDEX SCAN WITH QUOTED INT PREDICATE 2013-03-20 11:20:12 +01:00
sql_servers.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_servers.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
sql_show.cc Bug#17283409 4-WAY DEADLOCK: ZOMBIES, PURGING BINLOGS, 2014-05-08 18:13:01 +05:30
sql_show.h Bug#17638477 UNINSTALL AND INSTALL SEMI-SYNC PLUGIN CAUSES SLAVES TO BREAK 2014-05-05 22:22:15 +05:30
sql_signal.cc Bug#14640599 MEMORY LEAK WHEN EXECUTING STORED ROUTINE EXCEPTION HANDLER 2012-10-04 16:15:13 +02:00
sql_signal.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_sort.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
sql_state.c Updated/added copyright header. Added line "use is subject to license terms" 2014-02-17 18:19:04 +05:30
sql_string.cc Addendum #1 to the fix for bug #18359924 2014-04-11 10:42:30 +03:00
sql_string.h Bug #18359924: INNODB AND MYISAM CORRUPTION ON PREFIX INDEXES 2014-04-10 13:18:32 +03:00
sql_table.cc Fix for bug#14188793 - "DEADLOCK CAUSED BY ALTER TABLE DOEN'T CLEAR 2013-08-20 13:12:34 +04:00
sql_table.h Bug #14227431: CHARACTER SET MISMATCH WHEN ALTERING FOREIGN KEYS 2013-06-12 09:35:33 +02:00
sql_tablespace.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_tablespace.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_test.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_test.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_time.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_time.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_trigger.cc Bug #17503460 MYSQL READ ONLY DOESN'T WORK FOR DROP TRIGGER 2014-01-07 15:11:05 +05:30
sql_trigger.h Updated/added copyright headers 2011-07-04 01:25:49 +02:00
sql_truncate.cc Bug#17942050:KILL OF TRUNCATE TABLE WILL LEAD TO BINARY LOG 2014-04-15 15:17:25 +05:30
sql_truncate.h Bug#17942050:KILL OF TRUNCATE TABLE WILL LEAD TO BINARY LOG 2014-04-15 15:17:25 +05:30
sql_udf.cc Updated/added copyright headers 2012-02-16 10:48:16 +01:00
sql_udf.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
sql_union.cc Bug #17059925: UNIONS COMPUTES ROWS_EXAMINED INCORRECTLY 2014-05-08 14:49:53 +05:30
sql_union.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_update.cc Bug#16757869: INNODB: POSSIBLE REGRESSION IN 5.5.31, BUG#16004999 2013-05-06 15:01:57 +02:00
sql_update.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_view.cc Updated/added copyright headers 2014-01-06 10:52:35 +05:30
sql_view.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_yacc.yy Bug#17075846 - UNQUOTED FILE NAMES FOR VARIABLE VALUES ARE 2014-02-12 14:33:56 +05:30
strfunc.cc Updated/added copyright headers 2014-01-06 10:52:35 +05:30
strfunc.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
structs.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sys_vars.cc BUG#16032946 - PLEASE GIVE A MESSAGE FOR "THREAD_CONCURRENCY DOESN'T 2013-09-05 13:40:27 +05:30
sys_vars.h Bug#16945503 ADDRESSSANITIZER BUG IN SYS_VARS 2013-06-21 14:18:01 +02:00
sys_vars_shared.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
table.cc Updated/added copyright headers 2014-01-06 10:52:35 +05:30
table.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
thr_malloc.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
thr_malloc.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
transaction.cc Fix for bug #17356954 "CANNOT USE SAVEPOINTS AFTER ER_LOCK_DEADLOCK OR 2013-08-26 14:43:12 +04:00
transaction.h Updated/added copyright headers 2014-01-06 10:52:35 +05:30
tzfile.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
tztime.cc Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
tztime.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
udf_example.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
udf_example.def
uniques.cc Bug#14542543 FIX BUG #12694872 IN 5.5 2012-09-18 17:32:02 +02:00
unireg.cc Updated/added copyright headers 2011-07-04 01:25:49 +02:00
unireg.h Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00