mariadb/mysys
Marko Mäkelä 247ada63af Bug#12547647 UPDATE LOGGING COULD EXCEED LOG PAGE SIZE
This fix was accidentally pushed to mysql-5.1 after the 5.1.59 clone-off in
bzr revision id marko.makela@oracle.com-20110829081642-z0w992a0mrc62s6w
with the fix of Bug#12704861 Corruption after a crash during BLOB update
but not merged to mysql-5.5 and upwards.

In the Barracuda formats, the clustered index record no longer
contains a prefix of off-page columns. Because of this, the undo log
must contain these prefixes, so that purge and multi-versioning will
continue to work. However, this also means that an undo log record can
become too big to fit in an undo log page. (It is a limitation of the
undo log that undo records cannot span across multiple pages.)

In case the checks for undo log size fail when CREATE TABLE or CREATE
INDEX is executed, we need a fallback that blocks a modification
operation when the undo log record would exceed the maximum size.

trx_undo_free_last_page_func(): Renamed from trx_undo_free_page_in_rollback().
Define the trx_t parameter only in debug builds.

trx_undo_free_last_page(): Wrapper for trx_undo_free_last_page_func().
Pass the trx_t parameter only in debug builds.

trx_undo_truncate_end_func(): Renamed from trx_undo_truncate_end().
Define the trx_t parameter only in debug builds. Rewrite a for(;;) loop
as a while loop for clarity.

trx_undo_truncate_end(): Wrapper for from trx_undo_truncate_end_func().
Pass the trx_t parameter only in debug builds.

trx_undo_erase_page_end(): Return TRUE if the page was non-empty
to begin with. Refuse to erase empty pages.

trx_undo_report_row_operation(): If the page for which the undo log
was too big was empty, free the undo page and return DB_TOO_BIG_RECORD.

rb:749 approved by Inaam Rana
2011-09-01 21:48:04 +03:00
..
array.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
base64.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
ChangeLog
charset-def.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
charset.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
checksum.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
CMakeLists.txt Updated/added copyright headers 2011-06-30 17:46:53 +02:00
default.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
errors.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
hash.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
lf_alloc-pin.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
lf_dynarray.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
lf_hash.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
list.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
md5.c Bug #42434: license of mysys MD5 implementation is not GPL-compatible 2009-03-09 20:57:03 +02:00
mf_arr_appstr.c Bug #20748: Configuration files should not be read more than once 2007-11-07 15:23:50 -07:00
mf_cache.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
mf_dirname.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
mf_fn_ext.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
mf_format.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
mf_getdate.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
mf_iocache.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
mf_iocache2.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
mf_keycache.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
mf_keycaches.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
mf_loadpath.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
mf_pack.c Updated/added copyright headers 2011-07-04 01:25:49 +02:00
mf_path.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
mf_qsort.c Fix for bug #31207: Test "join_nested" shows different strategy on IA64 2007-10-17 20:08:58 +04:00
mf_qsort2.c Many files: 2006-12-23 20:17:15 +01:00
mf_radix.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
mf_same.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
mf_sort.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
mf_soundex.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
mf_tempdir.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
mf_tempfile.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
mf_unixpath.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
mf_wcomp.c Many files: 2006-12-23 20:17:15 +01:00
mulalloc.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
my_access.c Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-23 20:20:40 +01:00
my_aes.c my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
my_alarm.c Many files: 2006-12-23 20:17:15 +01:00
my_alloc.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_atomic.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_bit.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_bitmap.c Updated/added copyright headers 2011-07-04 01:25:49 +02:00
my_chsize.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_compare.c Bug#11933945 REMOVE LGPL LICENSED FILES IN MYSQL 5.5 2011-03-29 14:43:49 +02:00
my_compress.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_conio.c Bug#29125 Windows Server X64: so many compiler warnings 2009-02-13 11:41:47 -05:00
my_copy.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_crc32.c Many files: 2006-12-23 20:17:15 +01:00
my_create.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_delete.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_div.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
my_error.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_file.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_fopen.c weave merge from mysql-5.1 to mysql-5.5 2011-02-08 17:47:33 +02:00
my_fstream.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_gethwaddr.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_getncpus.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_getopt.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
my_getpagesize.c Many files: 2006-12-23 20:17:15 +01:00
my_getsystime.c weave merge from mysql-5.1 to mysql-5.5 2011-02-08 17:47:33 +02:00
my_getwd.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_handler_errors.h Bug#12547647 UPDATE LOGGING COULD EXCEED LOG PAGE SIZE 2011-09-01 21:48:04 +03:00
my_init.c Bug#12779790 COMPILATION FAILS OS X 10.7 - IMPLICIT DECLARATION OF 2011-07-21 17:45:38 +02:00
my_largepage.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_lib.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_libwrap.c Many files: 2006-12-23 20:17:15 +01:00
my_lock.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_lockmem.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_malloc.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
my_memmem.c WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
my_mess.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_mkdir.c Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-23 20:20:40 +01:00
my_mmap.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_new.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_once.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_open.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_pread.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_pthread.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_quick.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_rdtsc.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_read.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_redel.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_rename.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_seek.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_sleep.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_static.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_static.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_symlink.c Merge from mysql-5.5.14-release 2011-07-06 01:13:50 +02:00
my_symlink2.c Merge mysql.com:/home/svoj/devel/mysql/BUG32111/mysql-5.0-engines 2007-11-12 15:26:37 +04:00
my_sync.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_thr_init.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_timer_cycles.il Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_wincond.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_windac.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_winerr.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_winfile.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_winthread.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_write.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
mysys_priv.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
ptr_cmp.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
queues.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
rijndael.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sha1.c Bug #56427 : Replace copyright notice removed from SHA1 code 2010-10-05 17:03:04 +03:00
stacktrace.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
string.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
test_charset.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
test_dir.c Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-23 20:20:40 +01:00
test_xml.c Many files: 2006-12-23 20:17:15 +01:00
testhash.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
thr_alarm.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
thr_lock.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
thr_mutex.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
thr_rwlock.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
tree.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
typelib.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00