-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
373 additions
and
447 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,48 @@ | ||
create table t1 (a int not null, d varchar(15) not null, b | ||
varchar(198) not null, c char(156), | ||
fulltext ftsic(c)) engine=InnoDB | ||
row_format=redundant; | ||
insert into t1 values(123, 'abcdef', 'jghikl', 'mnop'); | ||
insert into t1 values(456, 'abcdef', 'jghikl', 'mnop'); | ||
insert into t1 values(789, 'abcdef', 'jghikl', 'mnop'); | ||
insert into t1 values(134, 'kasdfsdsadf', 'adfjlasdkfjasd', 'adfsadflkasdasdfljasdf'); | ||
insert into t1 select * from t1; | ||
insert into t1 select * from t1; | ||
insert into t1 select * from t1; | ||
insert into t1 select * from t1; | ||
insert into t1 select * from t1; | ||
insert into t1 select * from t1; | ||
insert into t1 select * from t1; | ||
insert into t1 select * from t1; | ||
insert into t1 select * from t1; | ||
insert into t1 select * from t1; | ||
SET GLOBAL innodb_file_per_table=OFF; | ||
create table t2 (a int not null, d varchar(15) not null, b | ||
varchar(198) not null, c char(156), fulltext ftsic(c)) engine=InnoDB | ||
row_format=redundant; | ||
insert into t2 select * from t1; | ||
create table t3 (a int not null, d varchar(15) not null, b varchar(198), | ||
c varchar(150), index k1(c(99), b(56)), index k2(b(5), c(10))) engine=InnoDB | ||
row_format=redundant; | ||
insert into t3 values(444, 'dddd', 'bbbbb', 'aaaaa'); | ||
insert into t3 values(555, 'eeee', 'ccccc', 'aaaaa'); | ||
SET GLOBAL innodb_fast_shutdown=0; | ||
SELECT COUNT(*) FROM t1; | ||
COUNT(*) | ||
4096 | ||
SELECT COUNT(*) FROM t2; | ||
COUNT(*) | ||
4096 | ||
SELECT COUNT(*) FROM t3; | ||
COUNT(*) | ||
2 | ||
TRUNCATE TABLE t1; | ||
ERROR HY000: Table 't1' is read only | ||
TRUNCATE TABLE t2; | ||
ERROR HY000: Table 't2' is read only | ||
TRUNCATE TABLE t3; | ||
ERROR HY000: Table 't3' is read only | ||
TRUNCATE TABLE t1; | ||
TRUNCATE TABLE t2; | ||
TRUNCATE TABLE t3; | ||
DROP TABLE t1,t2,t3; |
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,75 @@ | ||
--source include/innodb_page_size.inc | ||
# Embedded mode doesn't allow restarting | ||
--source include/not_embedded.inc | ||
|
||
# MDEV-13059 XtraDB hangs on Windows due to failing to release | ||
# block->lock X-latch in innodb_read_only mode | ||
if (`SELECT count(*) FROM information_schema.plugins WHERE | ||
plugin_name = 'innodb' AND plugin_status = 'active' AND | ||
plugin_description LIKE '%xtradb%'`){ | ||
if (`SELECT @@version_compile_os IN ('Win32','Win64','Windows')`) { | ||
skip MDEV-13059 XtraDB hangs on Windows in innodb_read_only mode; | ||
} | ||
} | ||
|
||
create table t1 (a int not null, d varchar(15) not null, b | ||
varchar(198) not null, c char(156), | ||
fulltext ftsic(c)) engine=InnoDB | ||
row_format=redundant; | ||
|
||
insert into t1 values(123, 'abcdef', 'jghikl', 'mnop'); | ||
insert into t1 values(456, 'abcdef', 'jghikl', 'mnop'); | ||
insert into t1 values(789, 'abcdef', 'jghikl', 'mnop'); | ||
insert into t1 values(134, 'kasdfsdsadf', 'adfjlasdkfjasd', 'adfsadflkasdasdfljasdf'); | ||
insert into t1 select * from t1; | ||
insert into t1 select * from t1; | ||
insert into t1 select * from t1; | ||
insert into t1 select * from t1; | ||
insert into t1 select * from t1; | ||
insert into t1 select * from t1; | ||
insert into t1 select * from t1; | ||
insert into t1 select * from t1; | ||
insert into t1 select * from t1; | ||
insert into t1 select * from t1; | ||
|
||
SET GLOBAL innodb_file_per_table=OFF; | ||
create table t2 (a int not null, d varchar(15) not null, b | ||
varchar(198) not null, c char(156), fulltext ftsic(c)) engine=InnoDB | ||
row_format=redundant; | ||
|
||
insert into t2 select * from t1; | ||
|
||
create table t3 (a int not null, d varchar(15) not null, b varchar(198), | ||
c varchar(150), index k1(c(99), b(56)), index k2(b(5), c(10))) engine=InnoDB | ||
row_format=redundant; | ||
|
||
insert into t3 values(444, 'dddd', 'bbbbb', 'aaaaa'); | ||
insert into t3 values(555, 'eeee', 'ccccc', 'aaaaa'); | ||
|
||
# read-only restart requires the change buffer to be empty; therefore we | ||
# do a slow shutdown. | ||
SET GLOBAL innodb_fast_shutdown=0; | ||
--let $restart_parameters = --innodb-read-only | ||
--source include/restart_mysqld.inc | ||
|
||
SELECT COUNT(*) FROM t1; | ||
SELECT COUNT(*) FROM t2; | ||
SELECT COUNT(*) FROM t3; | ||
|
||
--error ER_OPEN_AS_READONLY | ||
TRUNCATE TABLE t1; | ||
--error ER_OPEN_AS_READONLY | ||
TRUNCATE TABLE t2; | ||
--error ER_OPEN_AS_READONLY | ||
TRUNCATE TABLE t3; | ||
|
||
--let $restart_parameters = | ||
--source include/restart_mysqld.inc | ||
|
||
TRUNCATE TABLE t1; | ||
TRUNCATE TABLE t2; | ||
TRUNCATE TABLE t3; | ||
|
||
# TODO: Shutdown, corrupt the SYS_TABLES.TYPE of the tables, restart | ||
|
||
DROP TABLE t1,t2,t3; |
2 changes: 1 addition & 1 deletion
2
mysql-test/suite/sys_vars/r/innodb_sched_priority_cleaner_basic.result
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.