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
MDEV-11539 test_if_reopen: Assertion `strcmp(share->unique_file_name,…
…filename) || share->last_version' failed upon select from I_S remove HA_EXTRA_PREPARE_FOR_RENAME - neither OPTIMIZE nor REPAIR need it (was introduced in b58e795 when replacing remove_table_from_cache() with wait_while_table_is_used() even though remove_table_from_cache() did not have it).
- Loading branch information
Showing
7 changed files
with
117 additions
and
5 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| CREATE TABLE t1 (i INT) ENGINE=Aria TRANSACTIONAL=1; | ||
| INSERT t1 VALUES (1); | ||
| LOCK TABLE t1 WRITE; | ||
| REPAIR TABLE t1; | ||
| Table Op Msg_type Msg_text | ||
| test.t1 repair status OK | ||
| SELECT * FROM INFORMATION_SCHEMA.TABLES; | ||
| SELECT * FROM t1; | ||
| i | ||
| 1 | ||
| UNLOCK TABLES; | ||
| DROP TABLE t1; | ||
| CREATE TABLE t1 (i INT) ENGINE=Aria TRANSACTIONAL=1; | ||
| INSERT t1 VALUES (1); | ||
| LOCK TABLE t1 WRITE; | ||
| OPTIMIZE TABLE t1; | ||
| Table Op Msg_type Msg_text | ||
| test.t1 optimize status OK | ||
| SELECT * FROM INFORMATION_SCHEMA.TABLES; | ||
| SELECT * FROM t1; | ||
| i | ||
| 1 | ||
| UNLOCK TABLES; | ||
| DROP TABLE t1; |
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,24 @@ | ||
| # | ||
| # MDEV-11539 test_if_reopen: Assertion `strcmp(share->unique_file_name,filename) || share->last_version' failed upon select from I_S | ||
| # | ||
| CREATE TABLE t1 (i INT) ENGINE=Aria TRANSACTIONAL=1; | ||
| INSERT t1 VALUES (1); | ||
| LOCK TABLE t1 WRITE; | ||
| REPAIR TABLE t1; | ||
| --disable_result_log | ||
| SELECT * FROM INFORMATION_SCHEMA.TABLES; | ||
| --enable_result_log | ||
| SELECT * FROM t1; | ||
| UNLOCK TABLES; | ||
| DROP TABLE t1; | ||
|
|
||
| CREATE TABLE t1 (i INT) ENGINE=Aria TRANSACTIONAL=1; | ||
| INSERT t1 VALUES (1); | ||
| LOCK TABLE t1 WRITE; | ||
| OPTIMIZE TABLE t1; | ||
| --disable_result_log | ||
| SELECT * FROM INFORMATION_SCHEMA.TABLES; | ||
| --enable_result_log | ||
| SELECT * FROM t1; | ||
| UNLOCK TABLES; | ||
| DROP TABLE t1; |
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