Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
30 changed files
with
508 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| SET GLOBAL innodb_log_optimize_ddl=OFF; | ||
| CREATE TABLE tz(id BIGINT PRIMARY KEY, i INT) | ||
| ENGINE=InnoDB ROW_FORMAT=COMPRESSED; | ||
| INSERT INTO tz(id) select * from seq_1_to_10000; | ||
| CREATE TABLE tr(id BIGINT PRIMARY KEY, i INT) | ||
| ENGINE=InnoDB ROW_FORMAT=REDUNDANT; | ||
| INSERT INTO tr(id) select * from seq_1_to_10000; | ||
| CREATE TABLE td(id BIGINT PRIMARY KEY, i INT) | ||
| ENGINE=InnoDB; | ||
| INSERT INTO td(id) select * from seq_1_to_10000; | ||
| CREATE PROCEDURE a() | ||
| BEGIN | ||
| ALTER TABLE tz ADD INDEX(i); | ||
| ALTER TABLE tr ADD INDEX(i); | ||
| ALTER TABLE td ADD INDEX(i); | ||
| END // | ||
| call a(); | ||
| # shutdown server | ||
| # remove datadir | ||
| # xtrabackup move back | ||
| # restart server | ||
| DROP PROCEDURE a; | ||
| CHECK TABLE tz,tr,td; | ||
| Table Op Msg_type Msg_text | ||
| test.tz check status OK | ||
| test.tr check status OK | ||
| test.td check status OK | ||
| SELECT COUNT(*) FROM tz; | ||
| COUNT(*) | ||
| 10000 | ||
| SELECT COUNT(*) FROM tr; | ||
| COUNT(*) | ||
| 10000 | ||
| SELECT COUNT(*) FROM td; | ||
| COUNT(*) | ||
| 10000 | ||
| DROP TABLE tz,tr,td; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # see unsupported_redo.test for the opposite (default) case | ||
| --source include/have_innodb.inc | ||
| --source include/have_sequence.inc | ||
|
|
||
| SET GLOBAL innodb_log_optimize_ddl=OFF; | ||
|
|
||
| CREATE TABLE tz(id BIGINT PRIMARY KEY, i INT) | ||
| ENGINE=InnoDB ROW_FORMAT=COMPRESSED; | ||
| INSERT INTO tz(id) select * from seq_1_to_10000; | ||
| CREATE TABLE tr(id BIGINT PRIMARY KEY, i INT) | ||
| ENGINE=InnoDB ROW_FORMAT=REDUNDANT; | ||
| INSERT INTO tr(id) select * from seq_1_to_10000; | ||
| CREATE TABLE td(id BIGINT PRIMARY KEY, i INT) | ||
| ENGINE=InnoDB; | ||
| INSERT INTO td(id) select * from seq_1_to_10000; | ||
|
|
||
| DELIMITER //; | ||
| CREATE PROCEDURE a() | ||
| BEGIN | ||
| ALTER TABLE tz ADD INDEX(i); | ||
| ALTER TABLE tr ADD INDEX(i); | ||
| ALTER TABLE td ADD INDEX(i); | ||
| END // | ||
| DELIMITER ;// | ||
|
|
||
| let $targetdir=$MYSQLTEST_VARDIR/tmp/backup; | ||
|
|
||
| send call a(); | ||
|
|
||
| --disable_result_log | ||
| exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$targetdir; | ||
| --enable_result_log | ||
| exec $XTRABACKUP --prepare --target-dir=$targetdir; | ||
|
|
||
| reap; | ||
|
|
||
| -- source include/restart_and_restore.inc | ||
| --rmdir $targetdir | ||
|
|
||
| DROP PROCEDURE a; | ||
|
|
||
| CHECK TABLE tz,tr,td; | ||
| SELECT COUNT(*) FROM tz; | ||
| SELECT COUNT(*) FROM tr; | ||
| SELECT COUNT(*) FROM td; | ||
|
|
||
| DROP TABLE tz,tr,td; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.