mariadb/storage/innobase/buf
Marko Mäkelä 3c50661f41 Bug#16720368 INNODB IGNORES *.IBD FILE BREAKAGE AT STARTUP
After a clean shutdown, InnoDB will not check the *.ibd file headers,
for maximum performance. This is unchanged before and after this
patch.

What this fix addresses is the case when crash recovery is
needed. Previously, InnoDB could load a corrupted tablespace file.

buf_page_is_corrupted(): Add the parameter check_lsn.

fil_check_first_page(): New function, to perform a consistency check
on the first page of a file. This can be overridden by setting
innodb_force_recovery.

fil_read_first_page(), fil_open_single_table_tablespace(),
fil_load_single_table_tablespace(): Invoke fil_check_first_page().

open_or_create_data_files(): Check the status of
fil_open_single_table_tablespace().

rb#2352 approved by Jimmy Yang
2013-04-30 13:39:50 +03:00
..
buf0buddy.c Merge mysql-5.1 to mysql-5.5. 2011-09-06 10:14:45 +03:00
buf0buf.c Bug#16720368 INNODB IGNORES *.IBD FILE BREAKAGE AT STARTUP 2013-04-30 13:39:50 +03:00
buf0flu.c Approved by Jimmy and Inaam. rb#1576 2012-12-17 23:13:46 +08:00
buf0lru.c Approved by Jimmy and Inaam. rb#1576 2012-12-17 23:13:46 +08:00
buf0rea.c Bug#16249505 INNODB REPORTS THAT IT'S GOING TO WAIT FOR I/O BUT THE 2013-02-01 09:47:16 -05:00