mariadb/storage
Marko Mäkelä fae259f036 MDEV-12353: Introduce an EXTENDED record subtype TRIM_PAGES
For undo log truncation, commit 055a3334ad
repurposed the MLOG_FILE_CREATE2 record with a nonzero page size
to indicate that an undo tablespace will be shrunk in size.
In commit 7ae21b18a6 the
MLOG_FILE_CREATE2 record was replaced by a FILE_CREATE record.

Now that the redo log encoding was changed, there is no actual need
to write a file name in the log record; it suffices to write the
page identifier of the first page that is not part of the file.

This TRIM_PAGES record could allow us to shrink any data files in the
future. For now, it will be limited to undo tablespaces.

mtr_t::log_file_op(): Remove the parameter first_page_no, because
it would always be 0 for file operations.

mtr_t::trim_pages(): Replaces fil_truncate_log().

mtr_t::log_write(): Avoid same_page encoding if !bpage&&!m_last.

fil_op_replay_rename(): Remove the constant parameter first_page_no=0.
2020-03-03 13:25:45 +02:00
..
archive Revert "MDEV-20342 Turn Field::flags from a member to a method" 2019-08-14 20:27:00 +04:00
blackhole Merge 10.4 into 10.5 2019-08-13 18:57:00 +03:00
cassandra Merge 10.4 into 10.5 2019-08-13 18:57:00 +03:00
connect Merge 10.4 into 10.5 2020-02-07 08:51:20 +02:00
csv MDEV-20806 Federated does not work with INET6, returns NULL with warning ER_TRUNCATED_WRONG_VALUE 2019-10-12 07:25:53 +04:00
example Merge 10.4 into 10.5 2019-12-16 07:47:17 +02:00
federated MDEV-21581 Helper functions and methods for CHARSET_INFO 2020-01-28 12:29:23 +04:00
federatedx MDEV-21581 Helper functions and methods for CHARSET_INFO 2020-01-28 12:29:23 +04:00
heap MDEV-21581 Helper functions and methods for CHARSET_INFO 2020-01-28 12:29:23 +04:00
innobase MDEV-12353: Introduce an EXTENDED record subtype TRIM_PAGES 2020-03-03 13:25:45 +02:00
maria Merge 10.4 into 10.5 2020-02-07 08:51:20 +02:00
mroonga MDEV-18650: Options deprecated in previous versions - mroonga_default_parser 2020-02-13 13:42:01 +02:00
myisam Merge 10.4 into 10.5 2020-02-07 08:51:20 +02:00
myisammrg MDEV-19955 make argument of handler::ha_write_row() const 2019-07-05 13:14:19 +03:00
oqgraph Revert "MDEV-20342 Turn Field::flags from a member to a method" 2019-08-14 20:27:00 +04:00
perfschema MDEV-21702 Add a data type for privileges 2020-02-11 08:10:26 +04:00
rocksdb MDEV-15058: Revert the changes to INFORMATION_SCHEMA 2020-02-12 20:54:59 +02:00
sequence MDEV-16327: Server doesn't account for engines that supports OFFSET on their own. 2019-10-13 09:40:41 +02:00
sphinx Merge 10.4 into 10.5 2019-12-16 07:47:17 +02:00
spider MDEV-21581 Helper functions and methods for CHARSET_INFO 2020-01-28 12:29:23 +04:00
test_sql_discovery MDEV-19944 Remove GIS data types from keyword list in lex.h 2019-07-04 07:48:46 +04:00
tokudb Merge branch '10.4' into 10.5 2020-02-12 08:55:17 +01:00