Skip to content

Commit e180f3c

Browse files
committed
Adapt the test case for Oracle Bug#25330449
1 parent dbe4c4e commit e180f3c

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Bug#25330449 ASSERT SIZE==SPACE->SIZE DURING BUF_READ_AHEAD_RANDOM
2+
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=INNODB ROW_FORMAT=COMPRESSED;
3+
SET @saved = @@GLOBAL.innodb_random_read_ahead;
4+
SET GLOBAL innodb_random_read_ahead = 1;
5+
DROP TABLE t1;
6+
SET GLOBAL innodb_random_read_ahead = @saved;
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
--source include/have_innodb.inc
2+
--source include/have_innodb_max_16k.inc
3+
# Embedded server tests do not support restarting
4+
--source include/not_embedded.inc
5+
6+
--echo # Bug#25330449 ASSERT SIZE==SPACE->SIZE DURING BUF_READ_AHEAD_RANDOM
7+
8+
let $MYSQLD_DATADIR=`SELECT @@datadir`;
9+
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=INNODB ROW_FORMAT=COMPRESSED;
10+
11+
--source include/shutdown_mysqld.inc
12+
--remove_file $MYSQLD_DATADIR/ib_buffer_pool
13+
14+
--write_file $MYSQLD_DATADIR/ib_buffer_pool
15+
EOF
16+
17+
--source include/start_mysqld.inc
18+
SET @saved = @@GLOBAL.innodb_random_read_ahead;
19+
SET GLOBAL innodb_random_read_ahead = 1;
20+
21+
DROP TABLE t1;
22+
SET GLOBAL innodb_random_read_ahead = @saved;

0 commit comments

Comments
 (0)