mariadb/mysql-test/suite/innodb_zip/include
Marko Mäkelä 3448ceb02a MDEV-13564: Implement innodb_unsafe_truncate=ON for compatibility
While MariaDB Server 10.2 is not really guaranteed to be compatible
with Percona XtraBackup 2.4 (for example, the MySQL 5.7 undo log format
change that could be present in XtraBackup, but was reverted from
MariaDB in MDEV-12289), we do not want to disrupt users who have
deployed xtrabackup and MariaDB Server 10.2 in their environments.

With this change, MariaDB 10.2 will continue to use the backup-unsafe
TRUNCATE TABLE code, so that neither the undo log nor the redo log
formats will change in an incompatible way.

Undo tablespace truncation will keep using the redo log only. Recovery
or backup with old code will fail to shrink the undo tablespace files,
but the contents will be recovered just fine.

In the MariaDB Server 10.2 series only, we introduce the configuration
parameter innodb_unsafe_truncate and make it ON by default. To allow
MariaDB Backup (mariabackup) to work properly with TRUNCATE TABLE
operations, use loose_innodb_unsafe_truncate=OFF.

MariaDB Server 10.3.10 and later releases will always use the
backup-safe TRUNCATE TABLE, and this parameter will not be
added there.

recv_recovery_rollback_active(): Skip row_mysql_drop_garbage_tables()
unless innodb_unsafe_truncate=OFF. It is too unsafe to drop orphan
tables if RENAME operations are not transactional within InnoDB.

LOG_HEADER_FORMAT_10_3: Replaces LOG_HEADER_FORMAT_CURRENT.

log_init(), log_group_file_header_flush(),
srv_prepare_to_delete_redo_log_files(),
innobase_start_or_create_for_mysql(): Choose the redo log format
and subformat based on the value of innodb_unsafe_truncate.
2018-10-11 08:17:04 +03:00
..
have_no_undo_tablespaces.inc misc after-merge changes: 2016-09-10 16:04:44 +02:00
innodb-wl6045.inc Merge InnoDB 5.7 from mysql-5.7.9. 2016-09-02 13:22:28 +03:00
innodb_create_tab_indx.inc Merge InnoDB 5.7 from mysql-5.7.9. 2016-09-02 13:22:28 +03:00
innodb_dml_ops.inc Merge InnoDB 5.7 from mysql-5.7.9. 2016-09-02 13:22:28 +03:00
innodb_fetch_records.inc Merge InnoDB 5.7 from mysql-5.7.9. 2016-09-02 13:22:28 +03:00
innodb_load_data.inc Merge InnoDB 5.7 from mysql-5.7.9. 2016-09-02 13:22:28 +03:00
innodb_stats_comp_index.inc Merge InnoDB 5.7 from mysql-5.7.9. 2016-09-02 13:22:28 +03:00
innodb_stats_restart.inc Merge InnoDB 5.7 from mysql-5.7.9. 2016-09-02 13:22:28 +03:00
innodb_wl6501_scale.inc MDEV-13564: Implement innodb_unsafe_truncate=ON for compatibility 2018-10-11 08:17:04 +03:00