mariadb/storage/innobase
Marko Mäkelä 4c57188c9c 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
..
btr Merge mysql-5.1 to mysql-5.5. 2011-08-29 11:22:43 +03:00
buf Merge mysql-5.1 to mysql-5.5. 2011-08-29 11:22:43 +03:00
data Implement worklog #5743 InnoDB: Lift the limit of index key prefixes. 2011-05-31 02:12:32 -07:00
dict Fix Bug 12922077 - SEGV IN DICT_SET_CORRUPTED_INDEX_CACHE_ONLY(), DROP TABLE 2011-08-29 02:44:28 -07:00
dyn Renamed storage/innodb_plugin to storage/innobase, so that 1) it's the same 2009-08-07 12:16:00 +02:00
eval Remove redundant variable 2010-09-20 18:48:38 +03:00
fil Bug#12543706 - innodb-fast-shutdown=2: Assert 2011-05-17 15:15:55 +03:00
fsp Merge mysql-5.1 to mysql-5.5. 2011-08-29 11:22:43 +03:00
fut Renamed storage/innodb_plugin to storage/innobase, so that 1) it's the same 2009-08-07 12:16:00 +02:00
ha Currently we do a full validation of AHI whenever check tables is 2010-08-05 11:09:05 -04:00
handler Bug#12547647 UPDATE LOGGING COULD EXCEED LOG PAGE SIZE 2011-09-01 21:48:04 +03:00
ibuf Merge mysql-5.1 to mysql-5.5. Add a test case. 2011-08-15 12:18:34 +03:00
include Bug#12547647 UPDATE LOGGING COULD EXCEED LOG PAGE SIZE 2011-09-01 21:48:04 +03:00
lock Bug#12584374 LOCK_VALIDATE TRIPS ASSERTION !BLOCK->PAGE.FILE_PAGE_WAS_FREE 2011-05-24 23:08:22 +03:00
log Merge mysql-5.1-innodb to mysql-5.5-innodb. 2011-04-11 17:03:32 +03:00
mach mach_ull_parse_compressed(): Move to .ic file to silence a GCC warning 2010-06-24 09:08:42 +03:00
mem Include "ha_prototypes.h" to sync/sync0rw.c for innobase_basename(). 2011-02-25 03:21:02 -08:00
mtr Merge mysql-5.1 to mysql-5.5. 2011-08-29 11:22:43 +03:00
os Fix bug #12424282 - INNODB PERFORMANCE SCHEMA: Double accounting for OS_AIO_SYNC 2011-05-04 00:09:48 -07:00
page Merge mysql-5.1 to mysql-5.5. 2011-06-28 12:03:55 +03:00
pars Fix bug #11830883, SUPPORT "CORRUPTED" BIT FOR INNODB TABLES AND INDEXES. 2011-08-16 18:07:59 -07:00
que (que0que.c:1286) Bug#55227 Fix compiler warnings in innodb with gcc 4.6 2010-09-20 19:01:14 +03:00
read Bug#54728: Replace the dulint struct with a 64-bit integer. 2010-06-23 14:06:59 +03:00
rem Merge mysql-5.1 to mysql-5.5. 2011-06-16 15:13:24 +03:00
row Bug#12547647 UPDATE LOGGING COULD EXCEED LOG PAGE SIZE 2011-09-01 21:48:04 +03:00
srv Merge from 5.1 the fix for Bug 12356373 2011-07-19 10:54:59 -04:00
sync Merge mysql-5.1 to mysql-5.5. 2011-08-22 17:12:27 +03:00
trx Bug#12547647 UPDATE LOGGING COULD EXCEED LOG PAGE SIZE 2011-09-01 21:48:04 +03:00
usr Merge Innodb Plugin 1.0.6 from mysql-5.1-bugteam storage/innodb_plugin to mysql-trunk-merge. 2009-12-02 19:30:50 +05:30
ut Bug#12547647 UPDATE LOGGING COULD EXCEED LOG PAGE SIZE 2011-09-01 21:48:04 +03:00
CMakeLists.txt Bug#11766305 - 59392: Remove thr0loc.c and ibuf_inside() [part 4 of 4] 2011-03-24 14:00:14 +02:00
compile-innodb Invoke make with -j$(nproc) for better parallelism. 2010-09-09 13:50:06 +03:00
COPYING.Google Renamed storage/innodb_plugin to storage/innobase, so that 1) it's the same 2009-08-07 12:16:00 +02:00
COPYING.Percona Renamed storage/innodb_plugin to storage/innobase, so that 1) it's the same 2009-08-07 12:16:00 +02:00
Doxyfile Remove ut0auxconf.h. 2010-09-09 14:27:52 +03:00
ha_innodb.def Renamed storage/innodb_plugin to storage/innobase, so that 1) it's the same 2009-08-07 12:16:00 +02:00