Browse Source
MDEV-4786 merge 10.0-monty -> 10.0
MDEV-4786 merge 10.0-monty -> 10.0
remove TDC_RT_REMOVE_NOT_OWN_AND_MARK_NOT_USABLEpull/3/head
10 changed files with 16 additions and 128 deletions
-
15mysql-test/r/myisam-metadata.result
-
48mysql-test/t/myisam-metadata.test
-
2sql/mysqld.cc
-
9sql/sql_admin.cc
-
26sql/sql_base.cc
-
6sql/sql_base.h
-
3sql/sql_table.cc
-
3sql/sql_truncate.cc
-
2sql/table.cc
-
30sql/table.h
@ -1,15 +0,0 @@ |
|||
DROP TABLE IF EXISTS t1; |
|||
CREATE TABLE t1 ( |
|||
id INT PRIMARY KEY, |
|||
a VARCHAR(100), |
|||
INDEX(a) |
|||
) ENGINE=MyISAM; |
|||
ALTER TABLE t1 DISABLE KEYS; |
|||
SET debug_sync= 'myisam_before_repair_by_sort SIGNAL waiting WAIT_FOR go'; |
|||
ALTER TABLE t1 ENABLE KEYS; |
|||
SET debug_sync= 'now WAIT_FOR waiting'; |
|||
SET debug_sync= 'now SIGNAL go'; |
|||
SHOW TABLE STATUS LIKE 't1'; |
|||
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 |
|||
t1 MyISAM 10 Dynamic 100000 27 # # # 0 NULL # # # latin1_swedish_ci NULL |
|||
DROP TABLE t1; |
|||
@ -1,48 +0,0 @@ |
|||
# |
|||
# Test bugs in MyISAM that may cause problems for metadata |
|||
# |
|||
|
|||
--source include/big_test.inc |
|||
--source include/have_debug_sync.inc |
|||
|
|||
--disable_warnings |
|||
DROP TABLE IF EXISTS t1; |
|||
--enable_warnings |
|||
|
|||
# |
|||
# LP:989055 - Querying myisam table metadata may corrupt the table |
|||
# |
|||
|
|||
CREATE TABLE t1 ( |
|||
id INT PRIMARY KEY, |
|||
a VARCHAR(100), |
|||
INDEX(a) |
|||
) ENGINE=MyISAM; |
|||
ALTER TABLE t1 DISABLE KEYS; |
|||
|
|||
let $1=100000; |
|||
--disable_query_log |
|||
while ($1) |
|||
{ |
|||
eval insert into t1 values($1, "line number $1"); |
|||
dec $1; |
|||
} |
|||
--enable_query_log |
|||
|
|||
--connect(con1,localhost,root,,) |
|||
SET debug_sync= 'myisam_before_repair_by_sort SIGNAL waiting WAIT_FOR go'; |
|||
send |
|||
ALTER TABLE t1 ENABLE KEYS; |
|||
|
|||
--connection default |
|||
SET debug_sync= 'now WAIT_FOR waiting'; |
|||
SET debug_sync= 'now SIGNAL go'; |
|||
|
|||
--replace_column 7 # 8 # 9 # 12 # 13 # 14 # |
|||
SHOW TABLE STATUS LIKE 't1'; |
|||
|
|||
--connection con1 |
|||
--reap |
|||
--connection default |
|||
--disconnect con1 |
|||
DROP TABLE t1; |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue