mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Merge 10.1 into 10.2
This commit is contained in:
@@ -41,6 +41,9 @@ SHOW TABLE STATUS LIKE 'tab';
|
||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||
tab InnoDB # Compact # # # # # # NULL # NULL NULL latin1_swedish_ci NULL
|
||||
ALTER TABLE tab DISCARD TABLESPACE;
|
||||
call mtr.add_suppression("InnoDB: Tried to read .* bytes at offset 0");
|
||||
ALTER TABLE tab IMPORT TABLESPACE;
|
||||
ERROR HY000: Internal error: Cannot reset LSNs in table `test`.`tab` : I/O error
|
||||
ALTER TABLE tab IMPORT TABLESPACE;
|
||||
SELECT * FROM tab;
|
||||
a
|
||||
|
||||
@@ -81,7 +81,14 @@ SHOW TABLE STATUS LIKE 'tab';
|
||||
ALTER TABLE tab DISCARD TABLESPACE;
|
||||
|
||||
# Move the *ibd,*.cfg file into orginal location
|
||||
--copy_file $MYSQLD_DATADIR/tab.cfg $MYSQLD_DATADIR/test/tab.ibd
|
||||
--move_file $MYSQLD_DATADIR/tab.cfg $MYSQLD_DATADIR/test/tab.cfg
|
||||
|
||||
call mtr.add_suppression("InnoDB: Tried to read .* bytes at offset 0");
|
||||
|
||||
--error ER_INTERNAL_ERROR
|
||||
ALTER TABLE tab IMPORT TABLESPACE;
|
||||
--remove_file $MYSQLD_DATADIR/test/tab.ibd
|
||||
--move_file $MYSQLD_DATADIR/tab.ibd $MYSQLD_DATADIR/test/tab.ibd
|
||||
|
||||
# Check import is successful (because same row_format)
|
||||
|
||||
Reference in New Issue
Block a user