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.
Browse files
Merge 10.1 into 10.2
innodb.table_flags: Adjust the test case. Due to the MDEV-12873 fix in 10.2, the corrupted flags for table test.td would be converted, and a tablespace flag mismatch will occur when trying to open the file.
- Loading branch information
Showing
26 changed files
with
812 additions
and
149 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| --- suite/innodb/r/table_flags.result | ||
| +++ suite/innodb/r/table_flags,32k.reject | ||
| @@ -5,6 +5,8 @@ | ||
| SET innodb_strict_mode=OFF; | ||
| CREATE TABLE tz(a INT PRIMARY KEY)ENGINE=InnoDB ROW_FORMAT=COMPRESSED | ||
| KEY_BLOCK_SIZE=1; | ||
| +Warnings: | ||
| +Warning 1478 InnoDB: Cannot create a COMPRESSED table when innodb_page_size > 16k. Assuming ROW_FORMAT=DYNAMIC. | ||
| SET innodb_strict_mode=ON; | ||
| CREATE TABLE tp(a INT PRIMARY KEY)ENGINE=InnoDB ROW_FORMAT=DYNAMIC | ||
| PAGE_COMPRESSED=1 PAGE_COMPRESSION_LEVEL=9; | ||
| @@ -13,7 +15,7 @@ | ||
| header=0x01000003016e (NAME=0x696e66696d756d00) | ||
| header=0x00002815008d (NAME='SYS_DATAFILES', | ||
| DB_TRX_ID=0x000000000302, | ||
| - DB_ROLL_PTR=0x81000001320194, | ||
| + DB_ROLL_PTR=0x81000001310194, | ||
| ID=0x000000000000000e, | ||
| N_COLS=0x00000002, | ||
| TYPE=0x00000001, | ||
| @@ -23,7 +25,7 @@ | ||
| SPACE=0x00000000) | ||
| header=0x0000101500d5 (NAME='SYS_FOREIGN', | ||
| DB_TRX_ID=0x000000000300, | ||
| - DB_ROLL_PTR=0x800000012d0110, | ||
| + DB_ROLL_PTR=0x800000012c0110, | ||
| ID=0x000000000000000b, | ||
| N_COLS=0x00000004, | ||
| TYPE=0x00000001, | ||
| @@ -33,7 +35,7 @@ | ||
| SPACE=0x00000000) | ||
| header=0x000018150122 (NAME='SYS_FOREIGN_COLS', | ||
| DB_TRX_ID=0x000000000300, | ||
| - DB_ROLL_PTR=0x800000012d0201, | ||
| + DB_ROLL_PTR=0x800000012c0201, | ||
| ID=0x000000000000000c, | ||
| N_COLS=0x00000004, | ||
| TYPE=0x00000001, | ||
| @@ -43,7 +45,7 @@ | ||
| SPACE=0x00000000) | ||
| header=0x0400201501b8 (NAME='SYS_TABLESPACES', | ||
| DB_TRX_ID=0x000000000302, | ||
| - DB_ROLL_PTR=0x81000001320110, | ||
| + DB_ROLL_PTR=0x81000001310110, | ||
| ID=0x000000000000000d, | ||
| N_COLS=0x00000003, | ||
| TYPE=0x00000001, | ||
| @@ -53,7 +55,7 @@ | ||
| SPACE=0x00000000) | ||
| header=0x000030150244 (NAME='SYS_VIRTUAL', | ||
| DB_TRX_ID=0x000000000304, | ||
| - DB_ROLL_PTR=0x82000001350110, | ||
| + DB_ROLL_PTR=0x82000001340110, | ||
| ID=0x000000000000000f, | ||
| N_COLS=0x00000003, | ||
| TYPE=0x00000001, | ||
| @@ -63,7 +65,7 @@ | ||
| SPACE=0x00000000) | ||
| header=0x000040150288 (NAME='test/tc', | ||
| DB_TRX_ID=0x000000000308, | ||
| - DB_ROLL_PTR=0x84000001380110, | ||
| + DB_ROLL_PTR=0x84000001370110, | ||
| ID=0x0000000000000011, | ||
| N_COLS=0x80000001, | ||
| TYPE=0x00000001, | ||
| @@ -73,7 +75,7 @@ | ||
| SPACE=0x00000002) | ||
| header=0x000048150310 (NAME='test/td', | ||
| DB_TRX_ID=0x00000000030a, | ||
| - DB_ROLL_PTR=0x85000001390110, | ||
| + DB_ROLL_PTR=0x85000001380110, | ||
| ID=0x0000000000000012, | ||
| N_COLS=0x80000001, | ||
| TYPE=0x00000021, | ||
| @@ -83,7 +85,7 @@ | ||
| SPACE=0x00000003) | ||
| header=0x000058150200 (NAME='test/tp', | ||
| DB_TRX_ID=0x00000000030e, | ||
| - DB_ROLL_PTR=0x870000013b0110, | ||
| + DB_ROLL_PTR=0x870000013a0110, | ||
| ID=0x0000000000000014, | ||
| N_COLS=0x80000001, | ||
| TYPE=0x000009a1, | ||
| @@ -93,7 +95,7 @@ | ||
| SPACE=0x00000005) | ||
| header=0x0000381502cc (NAME='test/tr', | ||
| DB_TRX_ID=0x000000000306, | ||
| - DB_ROLL_PTR=0x83000001370110, | ||
| + DB_ROLL_PTR=0x83000001360110, | ||
| ID=0x0000000000000010, | ||
| N_COLS=0x00000001, | ||
| TYPE=0x00000001, | ||
| @@ -103,10 +105,10 @@ | ||
| SPACE=0x00000001) | ||
| header=0x000050150074 (NAME='test/tz', | ||
| DB_TRX_ID=0x00000000030c, | ||
| - DB_ROLL_PTR=0x860000013a0110, | ||
| + DB_ROLL_PTR=0x86000001390110, | ||
| ID=0x0000000000000013, | ||
| N_COLS=0x80000001, | ||
| - TYPE=0x00000023, | ||
| + TYPE=0x00000021, | ||
| MIX_ID=0x0000000000000000, | ||
| MIX_LEN=0x00000050, | ||
| CLUSTER_NAME=NULL(0 bytes), |
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,92 @@ | ||
| --- suite/innodb/r/table_flags.result | ||
| +++ suite/innodb/r/table_flags,4k.reject | ||
| @@ -13,7 +13,7 @@ | ||
| header=0x01000003016e (NAME=0x696e66696d756d00) | ||
| header=0x00002815008d (NAME='SYS_DATAFILES', | ||
| DB_TRX_ID=0x000000000302, | ||
| - DB_ROLL_PTR=0x81000001320194, | ||
| + DB_ROLL_PTR=0x81000003260194, | ||
| ID=0x000000000000000e, | ||
| N_COLS=0x00000002, | ||
| TYPE=0x00000001, | ||
| @@ -23,7 +23,7 @@ | ||
| SPACE=0x00000000) | ||
| header=0x0000101500d5 (NAME='SYS_FOREIGN', | ||
| DB_TRX_ID=0x000000000300, | ||
| - DB_ROLL_PTR=0x800000012d0110, | ||
| + DB_ROLL_PTR=0x80000003200110, | ||
| ID=0x000000000000000b, | ||
| N_COLS=0x00000004, | ||
| TYPE=0x00000001, | ||
| @@ -33,7 +33,7 @@ | ||
| SPACE=0x00000000) | ||
| header=0x000018150122 (NAME='SYS_FOREIGN_COLS', | ||
| DB_TRX_ID=0x000000000300, | ||
| - DB_ROLL_PTR=0x800000012d0201, | ||
| + DB_ROLL_PTR=0x80000003200201, | ||
| ID=0x000000000000000c, | ||
| N_COLS=0x00000004, | ||
| TYPE=0x00000001, | ||
| @@ -43,7 +43,7 @@ | ||
| SPACE=0x00000000) | ||
| header=0x0400201501b8 (NAME='SYS_TABLESPACES', | ||
| DB_TRX_ID=0x000000000302, | ||
| - DB_ROLL_PTR=0x81000001320110, | ||
| + DB_ROLL_PTR=0x81000003260110, | ||
| ID=0x000000000000000d, | ||
| N_COLS=0x00000003, | ||
| TYPE=0x00000001, | ||
| @@ -53,7 +53,7 @@ | ||
| SPACE=0x00000000) | ||
| header=0x000030150244 (NAME='SYS_VIRTUAL', | ||
| DB_TRX_ID=0x000000000304, | ||
| - DB_ROLL_PTR=0x82000001350110, | ||
| + DB_ROLL_PTR=0x820000032a0110, | ||
| ID=0x000000000000000f, | ||
| N_COLS=0x00000003, | ||
| TYPE=0x00000001, | ||
| @@ -63,7 +63,7 @@ | ||
| SPACE=0x00000000) | ||
| header=0x000040150288 (NAME='test/tc', | ||
| DB_TRX_ID=0x000000000308, | ||
| - DB_ROLL_PTR=0x84000001380110, | ||
| + DB_ROLL_PTR=0x840000032d0110, | ||
| ID=0x0000000000000011, | ||
| N_COLS=0x80000001, | ||
| TYPE=0x00000001, | ||
| @@ -73,7 +73,7 @@ | ||
| SPACE=0x00000002) | ||
| header=0x000048150310 (NAME='test/td', | ||
| DB_TRX_ID=0x00000000030a, | ||
| - DB_ROLL_PTR=0x85000001390110, | ||
| + DB_ROLL_PTR=0x850000032f0110, | ||
| ID=0x0000000000000012, | ||
| N_COLS=0x80000001, | ||
| TYPE=0x00000021, | ||
| @@ -83,7 +83,7 @@ | ||
| SPACE=0x00000003) | ||
| header=0x000058150200 (NAME='test/tp', | ||
| DB_TRX_ID=0x00000000030e, | ||
| - DB_ROLL_PTR=0x870000013b0110, | ||
| + DB_ROLL_PTR=0x87000003310110, | ||
| ID=0x0000000000000014, | ||
| N_COLS=0x80000001, | ||
| TYPE=0x000009a1, | ||
| @@ -93,7 +93,7 @@ | ||
| SPACE=0x00000005) | ||
| header=0x0000381502cc (NAME='test/tr', | ||
| DB_TRX_ID=0x000000000306, | ||
| - DB_ROLL_PTR=0x83000001370110, | ||
| + DB_ROLL_PTR=0x830000032c0110, | ||
| ID=0x0000000000000010, | ||
| N_COLS=0x00000001, | ||
| TYPE=0x00000001, | ||
| @@ -103,7 +103,7 @@ | ||
| SPACE=0x00000001) | ||
| header=0x000050150074 (NAME='test/tz', | ||
| DB_TRX_ID=0x00000000030c, | ||
| - DB_ROLL_PTR=0x860000013a0110, | ||
| + DB_ROLL_PTR=0x86000003300110, | ||
| ID=0x0000000000000013, | ||
| N_COLS=0x80000001, | ||
| TYPE=0x00000023, |
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,105 @@ | ||
| --- suite/innodb/r/table_flags.result | ||
| +++ suite/innodb/r/table_flags,64k.reject | ||
| @@ -5,6 +5,8 @@ | ||
| SET innodb_strict_mode=OFF; | ||
| CREATE TABLE tz(a INT PRIMARY KEY)ENGINE=InnoDB ROW_FORMAT=COMPRESSED | ||
| KEY_BLOCK_SIZE=1; | ||
| +Warnings: | ||
| +Warning 1478 InnoDB: Cannot create a COMPRESSED table when innodb_page_size > 16k. Assuming ROW_FORMAT=DYNAMIC. | ||
| SET innodb_strict_mode=ON; | ||
| CREATE TABLE tp(a INT PRIMARY KEY)ENGINE=InnoDB ROW_FORMAT=DYNAMIC | ||
| PAGE_COMPRESSED=1 PAGE_COMPRESSION_LEVEL=9; | ||
| @@ -13,7 +15,7 @@ | ||
| header=0x01000003016e (NAME=0x696e66696d756d00) | ||
| header=0x00002815008d (NAME='SYS_DATAFILES', | ||
| DB_TRX_ID=0x000000000302, | ||
| - DB_ROLL_PTR=0x81000001320194, | ||
| + DB_ROLL_PTR=0x81000001310194, | ||
| ID=0x000000000000000e, | ||
| N_COLS=0x00000002, | ||
| TYPE=0x00000001, | ||
| @@ -23,7 +25,7 @@ | ||
| SPACE=0x00000000) | ||
| header=0x0000101500d5 (NAME='SYS_FOREIGN', | ||
| DB_TRX_ID=0x000000000300, | ||
| - DB_ROLL_PTR=0x800000012d0110, | ||
| + DB_ROLL_PTR=0x800000012c0110, | ||
| ID=0x000000000000000b, | ||
| N_COLS=0x00000004, | ||
| TYPE=0x00000001, | ||
| @@ -33,7 +35,7 @@ | ||
| SPACE=0x00000000) | ||
| header=0x000018150122 (NAME='SYS_FOREIGN_COLS', | ||
| DB_TRX_ID=0x000000000300, | ||
| - DB_ROLL_PTR=0x800000012d0201, | ||
| + DB_ROLL_PTR=0x800000012c0201, | ||
| ID=0x000000000000000c, | ||
| N_COLS=0x00000004, | ||
| TYPE=0x00000001, | ||
| @@ -43,7 +45,7 @@ | ||
| SPACE=0x00000000) | ||
| header=0x0400201501b8 (NAME='SYS_TABLESPACES', | ||
| DB_TRX_ID=0x000000000302, | ||
| - DB_ROLL_PTR=0x81000001320110, | ||
| + DB_ROLL_PTR=0x81000001310110, | ||
| ID=0x000000000000000d, | ||
| N_COLS=0x00000003, | ||
| TYPE=0x00000001, | ||
| @@ -53,7 +55,7 @@ | ||
| SPACE=0x00000000) | ||
| header=0x000030150244 (NAME='SYS_VIRTUAL', | ||
| DB_TRX_ID=0x000000000304, | ||
| - DB_ROLL_PTR=0x82000001350110, | ||
| + DB_ROLL_PTR=0x82000001340110, | ||
| ID=0x000000000000000f, | ||
| N_COLS=0x00000003, | ||
| TYPE=0x00000001, | ||
| @@ -63,7 +65,7 @@ | ||
| SPACE=0x00000000) | ||
| header=0x000040150288 (NAME='test/tc', | ||
| DB_TRX_ID=0x000000000308, | ||
| - DB_ROLL_PTR=0x84000001380110, | ||
| + DB_ROLL_PTR=0x84000001370110, | ||
| ID=0x0000000000000011, | ||
| N_COLS=0x80000001, | ||
| TYPE=0x00000001, | ||
| @@ -73,7 +75,7 @@ | ||
| SPACE=0x00000002) | ||
| header=0x000048150310 (NAME='test/td', | ||
| DB_TRX_ID=0x00000000030a, | ||
| - DB_ROLL_PTR=0x85000001390110, | ||
| + DB_ROLL_PTR=0x85000001380110, | ||
| ID=0x0000000000000012, | ||
| N_COLS=0x80000001, | ||
| TYPE=0x00000021, | ||
| @@ -83,7 +85,7 @@ | ||
| SPACE=0x00000003) | ||
| header=0x000058150200 (NAME='test/tp', | ||
| DB_TRX_ID=0x00000000030e, | ||
| - DB_ROLL_PTR=0x870000013b0110, | ||
| + DB_ROLL_PTR=0x870000013a0110, | ||
| ID=0x0000000000000014, | ||
| N_COLS=0x80000001, | ||
| TYPE=0x000009a1, | ||
| @@ -93,7 +95,7 @@ | ||
| SPACE=0x00000005) | ||
| header=0x0000381502cc (NAME='test/tr', | ||
| DB_TRX_ID=0x000000000306, | ||
| - DB_ROLL_PTR=0x83000001370110, | ||
| + DB_ROLL_PTR=0x83000001360110, | ||
| ID=0x0000000000000010, | ||
| N_COLS=0x00000001, | ||
| TYPE=0x00000001, | ||
| @@ -103,10 +105,10 @@ | ||
| SPACE=0x00000001) | ||
| header=0x000050150074 (NAME='test/tz', | ||
| DB_TRX_ID=0x00000000030c, | ||
| - DB_ROLL_PTR=0x860000013a0110, | ||
| + DB_ROLL_PTR=0x86000001390110, | ||
| ID=0x0000000000000013, | ||
| N_COLS=0x80000001, | ||
| - TYPE=0x00000023, | ||
| + TYPE=0x00000021, | ||
| MIX_ID=0x0000000000000000, | ||
| MIX_LEN=0x00000050, | ||
| CLUSTER_NAME=NULL(0 bytes), |
Oops, something went wrong.