mariadb/storage
Marko Mäkelä 8451e09073 MDEV-11556 InnoDB redo log apply fails to adjust data file sizes
fil_space_t::recv_size: New member: recovered tablespace size in pages;
0 if no size change was read from the redo log,
or if the size change was implemented.

fil_space_set_recv_size(): New function for setting space->recv_size.

innodb_data_file_size_debug: A debug parameter for setting the system
tablespace size in recovery even when the redo log does not contain
any size changes. It is hard to write a small test case that would
cause the system tablespace to be extended at the critical moment.

recv_parse_log_rec(): Note those tablespaces whose size is being changed
by the redo log, by invoking fil_space_set_recv_size().

innobase_init(): Correct an error message, and do not require a larger
innodb_buffer_pool_size when starting up with a smaller innodb_page_size.

innobase_start_or_create_for_mysql(): Allow startup with any initial
size of the ibdata1 file if the autoextend attribute is set. Require
the minimum size of fixed-size system tablespaces to be 640 pages,
not 10 megabytes. Implement innodb_data_file_size_debug.

open_or_create_data_files(): Round the system tablespace size down
to pages, not to full megabytes, (Our test truncates the system
tablespace to more than 800 pages with innodb_page_size=4k.
InnoDB should not imagine that it was truncated to 768 pages
and then overwrite good pages in the tablespace.)

fil_flush_low(): Refactored from fil_flush().

fil_space_extend_must_retry(): Refactored from
fil_extend_space_to_desired_size().

fil_mutex_enter_and_prepare_for_io(): Extend the tablespace if
fil_space_set_recv_size() was called.

The test case has been successfully run with all the
innodb_page_size values 4k, 8k, 16k, 32k, 64k.
2016-12-30 09:52:24 +02:00
..
archive Merge branch '10.0' into 10.1 2016-03-21 13:02:53 +01:00
blackhole
cassandra Merge branch '10.0' into 10.1 2015-12-21 21:24:22 +01:00
connect Merge branch '10.0-galera' into 10.1 2016-11-02 13:44:07 +01:00
csv Merge branch '10.0' into 10.1 2016-03-21 13:02:53 +01:00
example
federated Merge branch '10.0' into 10.1 2016-03-21 13:02:53 +01:00
federatedx Merge branch '10.0' into 10.1 2016-05-04 15:23:26 +02:00
heap Sage cleanup in heap storage engine 2015-11-10 13:46:56 +02:00
innobase MDEV-11556 InnoDB redo log apply fails to adjust data file sizes 2016-12-30 09:52:24 +02:00
maria Merge branch '10.0' into 10.1 2016-12-11 09:53:42 +01:00
mroonga MDEV-9363 - Mroonga tests with datetime field fail on Solaris in buildbot 2016-07-08 23:38:05 +04:00
myisam Merge branch '10.0' into 10.1 2016-12-11 09:53:42 +01:00
myisammrg Merge branch '10.0' into 10.1 2016-05-04 15:23:26 +02:00
oqgraph Merge branch '10.0-galera' into 10.1 2016-11-02 13:44:07 +01:00
perfschema Merge branch '10.0' into 10.1 2016-09-28 17:55:28 +02:00
sequence test for group by pushdown with a view 2016-05-05 01:05:05 +02:00
sphinx MDEV-10985, MDEV-10986 - sphinx tests have not been maintained 2016-11-04 13:33:28 +03:00
spider revert part of 69f1a32 2016-06-22 10:23:11 +02:00
test_sql_discovery
tokudb Merge branch '10.0' into 10.1 2016-12-11 09:53:42 +01:00
xtradb MDEV-11556 InnoDB redo log apply fails to adjust data file sizes 2016-12-30 09:52:24 +02:00