mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
d6f7fd6016
The MySQL 5.7 TRUNCATE TABLE is inherently incompatible with hot backup, because it is creating and deleting a separate log file, and it is not writing redo log for all changes of the InnoDB data dictionary tables. Refuse to create a corrupted backup if the unsafe form of TRUNCATE was executed. Note: Undo log tablespace truncation cannot be detected easily. Also it is incompatible with backup, for similar reasons. xtrabackup_backup_func(): "Subscribe to" the log events before the first invocation of xtrabackup_copy_logfile(). recv_parse_or_apply_log_rec_body(): If the function pointer log_truncate is set, invoke it to report MLOG_TRUNCATE.
4 lines
141 B
Text
4 lines
141 B
Text
CREATE TABLE t1 ENGINE=InnoDB SELECT 1;
|
|
DROP TABLE t1;
|
|
SET GLOBAL innodb_log_checkpoint_now=1;
|
|
SET GLOBAL innodb_log_checkpoint_now=DEFAULT;
|