mariadb/sql
Michael Widenius ecf95c6e7f Fix of LP#616253 Crash in _ma_bitmap_set_full_page_bits on Aria recovery
The bug was based on wrong undo data in recovery file and not enough checking of bad data.

sql/sql_select.h:
  Added comment
storage/maria/ma_blockrec.c:
  - Removed wrong sanity checks (didn't work for UNDO records)
  - More sanity checks and DBUG_ASSERT
  - More DBUG_ENTER and DBUG_PRINT
  - Removed filler blocks in extent_to_bitmap_blocks() as it caused problems in write_block_record().
    This was the main cause of the bug.
    (This change can make records generated by UNDO slightly smaller than original record, which we have to fix
    by correcting row_pos.length before calling write_block_record())
  - Fixed some problems in write_block_record() while doing UNDO.
  - Store header_length without TRANSID_SIZE into recovery log (as UNDO entires doesn't have TRANSID_SIZE)
  - Mark table crashed if something goes wrong during UNDO
storage/maria/maria_def.h:
  Added header_length
2010-08-24 20:17:17 +03:00
..
examples Bug #43414 Parenthesis (and other) warnings compiling MySQL 2009-06-17 15:54:01 +02:00
share Merge MySQL 5.1.46 into MariaDB. 2010-04-28 14:52:24 +02:00
.cvsignore
add_errmsg
authors.h Bug#50561: ALTER PARTITIONS does not have adequate lock, breaks with 2010-03-17 15:10:41 +01:00
client_settings.h Bug#46013: rpl_extraColmaster_myisam fails on pb2 2009-08-13 17:07:20 -03:00
CMakeLists.txt Implement an NSIS based installer 2010-06-25 15:09:45 +02:00
contributors.h
custom_conf.h
debug_sync.cc Bug #51648 DBUG_SYNC_POINT is not defined on all platforms and mtr cant pre-check that 2010-03-19 11:06:40 +02:00
debug_sync.h Bug #51648 DBUG_SYNC_POINT is not defined on all platforms and mtr cant pre-check that 2010-03-19 11:06:40 +02:00
derror.cc
des_key_file.cc
discover.cc
event_data_objects.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
event_data_objects.h Bug#35997 Event scheduler seems to let the server crash, if it is embedded. 2008-05-09 09:43:02 +02:00
event_db_repository.cc Bug #49132 Replication failure on temporary table + DDL 2010-01-22 17:38:21 +08:00
event_db_repository.h
event_parse_data.cc Bug#29125 Windows Server X64: so many compiler warnings 2009-02-13 11:41:47 -05:00
event_parse_data.h Added "Sun Microsystems, Inc." to copyright headers on files modified 2008-11-10 21:21:49 +01:00
event_queue.cc WL#3262 add mutex lock order checking to safemutex (also called safe_mutex_deadlock_detector) 2008-12-03 00:02:52 +02:00
event_queue.h
event_scheduler.cc Merge MySQL 5.1.44 into MariaDB. 2010-03-04 09:03:07 +01:00
event_scheduler.h
events.cc Merge MySQL 5.1.46 into MariaDB. 2010-04-28 14:52:24 +02:00
events.h
field.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
field.h Merge MySQL 5.1.46 into MariaDB. 2010-04-28 14:52:24 +02:00
field_conv.cc Merge MySQL 5.1.46 into MariaDB. 2010-04-28 14:52:24 +02:00
filesort.cc Fixed compiler warnings 2010-05-27 20:18:31 +03:00
frm_crypt.cc
gen_lex_hash.cc Bug#29125 Windows Server X64: so many compiler warnings 2009-02-13 11:41:47 -05:00
gstream.cc Bug #43414 Parenthesis (and other) warnings compiling MySQL 2009-06-09 18:11:21 +02:00
gstream.h
ha_ndbcluster.cc restore the unintentinally broken ABI 2010-07-23 22:37:21 +02:00
ha_ndbcluster.h restore the unintentinally broken ABI 2010-07-23 22:37:21 +02:00
ha_ndbcluster_binlog.cc Merge with MySQL 5.1, with following additions: 2009-11-16 21:49:51 +01:00
ha_ndbcluster_binlog.h
ha_ndbcluster_cond.cc fixed warnings and compile errors from the fix for bug 26243 2008-03-29 09:52:16 +02:00
ha_ndbcluster_cond.h Merge mysql.com:/misc/mysql/34749/50-34749 2008-03-10 07:07:56 +01:00
ha_ndbcluster_tables.h
ha_partition.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
ha_partition.h restore the unintentinally broken ABI 2010-07-23 22:37:21 +02:00
handler.cc Fix for LP#614265 Crash in _ma_unpin_all_pages / _ma_search on DELETE with Aria search engine 2010-08-06 15:39:37 +03:00
handler.h Fix for LP#614265 Crash in _ma_unpin_all_pages / _ma_search on DELETE with Aria search engine 2010-08-06 15:39:37 +03:00
hash_filo.cc Fix a bunch of Windows warnings 2010-04-21 02:25:59 +02:00
hash_filo.h
hostname.cc We are now using Valgrind rather than purify, and have for quite some time. 2009-05-06 14:03:24 +02:00
init.cc Merge zippy.cornsilk.net:/home/cmiller/work/mysql/bug26294/my50-bug26294 2008-04-03 13:14:57 -04:00
item.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
item.h Fix for LP#612894 Some aggregate functions (such as MIN MAX) work incorrectly in subqueries after getting NULL value 2010-08-23 12:46:25 +03:00
item_buff.cc
item_cmpfunc.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
item_cmpfunc.h Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
item_create.cc Fixes after last merge of MySQL 5.1 2010-05-13 14:00:53 +03:00
item_create.h Merge MySQL 5.1.46 into MariaDB. 2010-04-28 14:52:24 +02:00
item_func.cc Merge MySQL 5.1.46 into MariaDB. 2010-04-28 14:52:24 +02:00
item_func.h Fix for LP#612894 Some aggregate functions (such as MIN MAX) work incorrectly in subqueries after getting NULL value 2010-08-23 12:46:25 +03:00
item_geofunc.cc Manual merge of the fix for bug#43668. 2009-11-24 18:26:13 +03:00
item_geofunc.h Fix for Bug#30217: Views: changes in metadata behaviour 2008-02-22 13:30:33 +03:00
item_row.cc Bug#51598 Inconsistent behaviour with a COALESCE statement inside an IN comparison 2010-03-19 10:21:37 +04:00
item_row.h Bug#51598 Inconsistent behaviour with a COALESCE statement inside an IN comparison 2010-03-19 10:21:37 +04:00
item_strfunc.cc Merge with MySQL 5.1.47 2010-05-26 21:55:40 +03:00
item_strfunc.h Merge MySQL 5.1.46 into MariaDB. 2010-04-28 14:52:24 +02:00
item_subselect.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
item_subselect.h Merge with MySQL 5.1.47 2010-05-26 21:55:40 +03:00
item_sum.cc Fix for LP#612894 Some aggregate functions (such as MIN MAX) work incorrectly in subqueries after getting NULL value 2010-08-23 12:46:25 +03:00
item_sum.h Fix for LP#612894 Some aggregate functions (such as MIN MAX) work incorrectly in subqueries after getting NULL value 2010-08-23 12:46:25 +03:00
item_timefunc.cc Merge MySQL 5.1.46 into MariaDB. 2010-04-28 14:52:24 +02:00
item_timefunc.h Bug #42849: innodb crash with varying time_zone on partitioned 2009-12-13 23:29:50 +03:00
item_xmlfunc.cc Merge with MySQL 5.1.42 2010-01-15 17:27:55 +02:00
item_xmlfunc.h
key.cc Bug#37721: ORDER BY when WHERE contains non-partitioned 2008-10-10 12:01:01 +02:00
lex.h Merge MySQL->MariaDB 2009-09-08 00:50:10 +04:00
lex_symbol.h
lock.cc When one does a drop table, the indexes are not flushed to disk before drop anymore (with MyISAM/Maria) 2010-02-10 21:06:24 +02:00
log.cc Added verbose mode to recovery 2010-08-18 10:52:57 +03:00
log.h BUG#53560 CREATE TEMP./DROP TEMP. are not binglogged correctly after a failed statement 2010-05-19 18:01:12 +01:00
log_event.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
log_event.h Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
log_event_old.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
log_event_old.h
log_slow.h Updated documentation files to reflect MariaDB and not the Maria storage engine or MySQL 2009-09-03 17:05:38 +03:00
Makefile.am Merge with MySQL 5.1, with following additions: 2009-11-16 21:49:51 +01:00
message.h Bug#40280: Message compiler(mc.exe) needed to compile MySQL on windows. 2008-10-23 15:28:53 +02:00
message.mc Bug#40280: Message compiler(mc.exe) needed to compile MySQL on windows. 2008-10-23 15:28:53 +02:00
message.rc Bug#40280: Message compiler(mc.exe) needed to compile MySQL on windows. 2008-10-23 15:28:53 +02:00
mf_iocache.cc Fix a bunch of Windows warnings 2010-04-21 02:25:59 +02:00
MSG00001.bin Bug#40280: Message compiler(mc.exe) needed to compile MySQL on windows. 2008-10-23 15:28:53 +02:00
my_decimal.cc Changed -1 row number in some warnings to 0 2009-12-06 19:26:12 +02:00
my_decimal.h Merge with MySQL 5.1, with following additions: 2009-11-16 21:49:51 +01:00
my_lock.c
mysql_priv.h Fixed compiler warnings 2010-08-04 21:36:11 +03:00
mysqld.cc Added verbose mode to recovery 2010-08-18 10:52:57 +03:00
mysqld_suffix.h
net_serv.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
nt_servc.cc merge 2008-11-22 01:10:38 +01:00
nt_servc.h merge 2008-11-22 01:10:38 +01:00
opt_range.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
opt_range.h Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
opt_sum.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
opt_table_elimination.cc LPBUG#523593: Running RQG optimizer_no_subquery crashes MariaDB 2010-02-18 15:03:52 +03:00
parse_file.cc Bug#44834 strxnmov is expected to behave as you'd expect 2009-06-19 13:24:43 +05:00
parse_file.h Bug#43385 Cannot ALTER DATABASE ... UPGRADE DATA DIRECTORY NAME when Views exist(addon) 2009-04-13 18:09:10 +05:00
partition_element.h
partition_info.cc Cherry-pick fix for Bug#53371, security hole with bypassing grants using special path in db/table names. 2010-05-09 21:30:06 +02:00
partition_info.h fixed a valgrind warning in partition_pruning 2009-09-02 18:42:08 +03:00
password.c Merge MySQL->MariaDB 2009-09-08 00:50:10 +04:00
procedure.cc
procedure.h Merge magare.gmz:/home/kgeorge/mysql/autopush/B26461-5.0-opt 2008-03-21 17:48:28 +02:00
protocol.cc Merge MySQL 5.1.46 into MariaDB. 2010-04-28 14:52:24 +02:00
protocol.h Merge MySQL->MariaDB 2009-09-08 00:50:10 +04:00
records.cc Merge with MySQL 5.1, with following additions: 2009-11-16 21:49:51 +01:00
repl_failsafe.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
repl_failsafe.h
rpl_constants.h BUG#40482: server/mysqlbinlog crashes when reading invalid Incident_log_event 2008-12-29 17:04:10 +01:00
rpl_filter.cc Merge with MySQL 5.1, with following additions: 2009-11-16 21:49:51 +01:00
rpl_filter.h
rpl_injector.cc Merge MySQL 5.1.44 into MariaDB. 2010-03-04 09:03:07 +01:00
rpl_injector.h Fixed compiler warnings in a lot of files 2008-02-13 21:27:12 +02:00
rpl_mi.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
rpl_mi.h BUG#53657: Slave crashed with error 22 when trying to lock mutex 2010-05-24 17:43:27 +01:00
rpl_record.cc Fix for compiler warnings: 2010-01-28 19:51:40 -02:00
rpl_record.h BUG#48091 valgrind errors when slave has double not null and master has double null 2009-10-22 01:15:45 +01:00
rpl_record_old.cc
rpl_record_old.h
rpl_reporting.cc BUG#45511 rpl.rpl_binlog_corruption fails with warning messages in Valgrind 2009-06-16 16:04:30 +01:00
rpl_reporting.h BUG#45511 rpl.rpl_binlog_corruption fails with warning messages in Valgrind 2009-06-16 16:04:30 +01:00
rpl_rli.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
rpl_rli.h Merge MySQL 5.1.44 into MariaDB. 2010-03-04 09:03:07 +01:00
rpl_tblmap.cc Bug#45613 handle failures from my_hash_insert 2009-11-20 16:18:01 +01:00
rpl_tblmap.h Bug#31455 mysqlbinlog don't print user readable info about RBR events 2008-08-20 19:06:31 +05:00
rpl_utility.cc BUG#49618: Field length stored incorrectly in binary log 2010-03-17 15:28:49 +01:00
rpl_utility.h Merging with mysql-5.1-bugteam 2010-03-17 19:15:41 +01:00
scheduler.cc Added protection around usage of thd->mysys_var 2009-11-26 22:19:33 +02:00
scheduler.h Added mariadb and mariadb-version as my.conf option tags 2009-03-18 04:14:22 +02:00
set_var.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
set_var.h Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
slave.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
slave.h Merge with MySQL 5.1, with following additions: 2009-11-16 21:49:51 +01:00
sp.cc Manual merge from the bugfix tree. 2010-06-11 16:52:06 +04:00
sp.h Bug#45613 handle failures from my_hash_insert 2009-11-20 16:18:01 +01:00
sp_cache.cc Merge MySQL 5.1.46 into MariaDB. 2010-04-28 14:52:24 +02:00
sp_cache.h WL#3262 add mutex lock order checking to safemutex (also called safe_mutex_deadlock_detector) 2008-12-03 00:02:52 +02:00
sp_head.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
sp_head.h Bug#50755: Crash if stored routine def contains version comments 2010-04-01 10:15:22 -03:00
sp_pcontext.cc merging 2009-04-29 07:59:10 +05:00
sp_pcontext.h Manual merge. 2009-12-18 16:44:24 -02:00
sp_rcontext.cc Bug#34384: Slow down on constant conversion. 2009-11-06 22:34:25 +03:00
sp_rcontext.h
spatial.cc Merge MySQL 5.1.39 into MariaDB 5.1. 2009-10-15 23:38:29 +02:00
spatial.h Merge from 5.0-bugteam 2009-06-17 16:56:44 +02:00
sql_acl.cc Revert Bug#48321 due to build breakage and failing tests. 2010-06-28 17:59:41 -03:00
sql_acl.h Bug#41726: upgrade from 5.0 to 5.1.30 crashes if you didn't run mysql_upgrade 2009-11-21 09:18:21 -02:00
sql_analyse.cc Merge from 5.0-bugteam 2009-06-17 16:56:44 +02:00
sql_analyse.h Merge magare.gmz:/home/kgeorge/mysql/autopush/B26461-5.0-opt 2008-03-21 17:48:28 +02:00
sql_array.h
sql_base.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
sql_binlog.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
sql_bitmap.h MWL#17: Table elimination 2009-08-13 02:34:21 +04:00
sql_builtin.cc.in Remove compiler warnings (Including some warnings from -Wstrict-aliasing) 2009-11-30 01:08:56 +02:00
sql_cache.cc Changed version number from RC to stable 2010-01-29 12:42:31 +02:00
sql_cache.h Bug#39253 Large query cache still freezes server after fix for bug #21074 2009-11-20 13:49:06 +01:00
sql_class.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
sql_class.h Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
sql_client.cc
sql_connect.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
sql_crypt.cc Merge MySQL 5.1.44 into MariaDB. 2010-03-04 09:03:07 +01:00
sql_crypt.h Merge MySQL 5.1.44 into MariaDB. 2010-03-04 09:03:07 +01:00
sql_cursor.cc 5.0-bugteam->5.1-bugteam merge 2008-12-10 18:16:21 +04:00
sql_cursor.h
sql_db.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
sql_delete.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
sql_derived.cc Bug#42733: Type-punning warnings when compiling MySQL -- 2010-06-10 17:45:22 -03:00
sql_do.cc Rename send_ok to my_ok. Similarly to my_error, it only records the status, 2008-02-19 15:45:21 +03:00
sql_error.cc Bug#29125 Windows Server X64: so many compiler warnings 2009-02-13 11:41:47 -05:00
sql_error.h
sql_handler.cc Fix for bug #54007: assert in ha_myisam::index_next, HANDLER 2010-06-09 14:45:04 +04:00
sql_help.cc Merge from 5.0-bugteam 2009-06-17 16:56:44 +02:00
sql_insert.cc Fixed compiler warnings 2010-08-04 21:36:11 +03:00
sql_lex.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
sql_lex.h Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
sql_list.cc
sql_list.h Fixed warnings and build failures after last push 2010-08-02 19:39:45 +03:00
sql_load.cc Fixed warnings and build failures after last push 2010-08-02 19:39:45 +03:00
sql_locale.cc Bug#43207 wrong LC_TIME names for romanian locale 2009-10-19 13:41:52 +05:00
sql_manager.cc Bug#38522: 5 seconds delay when closing application using embedded server 2008-12-04 19:41:53 +01:00
sql_map.cc
sql_map.h
sql_olap.cc Bug#42733: Type-punning warnings when compiling MySQL -- 2010-06-10 17:45:22 -03:00
sql_parse.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
sql_partition.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
sql_partition.h Bug #42849: innodb crash with varying time_zone on partitioned 2009-12-13 23:29:50 +03:00
sql_plugin.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
sql_plugin.h 1. don't crash on failing to load a plugin with newer MYSQL_PLUGIN_INTERFACE_VERSION 2010-03-12 20:05:21 +01:00
sql_prepare.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
sql_profile.cc Merge MySQL 5.1.46 into MariaDB. 2010-04-28 14:52:24 +02:00
sql_profile.h Patch set contributed by Alex Budovski (MCA) 2010-01-29 20:42:22 +02:00
sql_rename.cc Backport Bug#37148 to 5.1 2010-01-24 15:03:23 +08:00
sql_repl.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
sql_repl.h Merge dl145h.mysql.com:/data0/mkindahl/mysql-5.0-rpl 2008-03-14 18:38:54 +01:00
sql_select.cc Fix for LP#612894 Some aggregate functions (such as MIN MAX) work incorrectly in subqueries after getting NULL value 2010-08-23 12:46:25 +03:00
sql_select.h Fix of LP#616253 Crash in _ma_bitmap_set_full_page_bits on Aria recovery 2010-08-24 20:17:17 +03:00
sql_servers.cc Bug#33982 debug assertion and crash reloading grant tables after sighup or kill 2010-01-13 12:39:00 +01:00
sql_servers.h
sql_show.cc Fixed some test failures after last push (failing tests and valgrind warnings) 2010-08-04 13:19:18 +03:00
sql_show.h Added "Sun Microsystems, Inc." to copyright headers on files modified 2008-11-10 21:21:49 +01:00
sql_sort.h
sql_state.c
sql_string.cc Removed not used declarations 2009-10-13 19:57:36 +03:00
sql_string.h Merge MySQL->MariaDB 2009-09-08 00:50:10 +04:00
sql_table.cc Fixes to allow one to compile and test innodb_plugin 2010-08-04 00:26:17 +03:00
sql_tablespace.cc Merge MySQL 5.1.44 into MariaDB. 2010-03-04 09:03:07 +01:00
sql_test.cc Bug #50271: Debug output of JOIN structures is garbled 2010-01-28 12:10:57 +01:00
sql_trigger.cc Manual merge from the bugfix tree. 2010-06-11 16:52:06 +04:00
sql_trigger.h Fix for 2009-01-14 18:50:51 +04:00
sql_udf.cc Manual merge with Conflicts: 2010-01-25 10:55:05 +08:00
sql_udf.h
sql_union.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
sql_update.cc Fixed compiler warnings 2010-08-04 21:36:11 +03:00
sql_view.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
sql_view.h Bug#43385 Cannot ALTER DATABASE ... UPGRADE DATA DIRECTORY NAME when Views exist(addon) 2009-04-13 18:09:10 +05:00
sql_yacc.yy Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
strfunc.cc Bug #43414 Parenthesis (and other) warnings compiling MySQL 2009-09-23 15:21:29 +02:00
structs.h A fix and a test case for 2009-11-03 20:45:52 +03:00
table.cc Fixed compiler warnings 2010-08-04 21:36:11 +03:00
table.h Fixes bug when we run bcmp() on row when the storage engine hasn't filled in all fields in the row. 2010-08-04 16:01:13 +03:00
thr_malloc.cc Bug #42064: low memory crash when importing hex strings, in 2010-05-21 15:23:48 +04:00
time.cc Merge with MySQL 5.1, with following additions: 2009-11-16 21:49:51 +01:00
tzfile.h
tztime.cc Merge from 5.0-bugteam 2009-06-17 16:56:44 +02:00
tztime.h Backport of a 5.0.74 fix into 5.0.72sp1: 2009-01-12 17:40:29 +01:00
udf_example.c Merge with MySQL 5.1, with following additions: 2009-11-16 21:49:51 +01:00
udf_example.def Patch set contributed by Alex Budovski (MCA) 2010-01-29 20:42:22 +02:00
uniques.cc Merge from 5.0-bugteam 2009-06-17 16:56:44 +02:00
unireg.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
unireg.h Merge MySQL->MariaDB 2009-09-08 00:50:10 +04:00