File: readahead.test

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (23 lines) | stat: -rw-r--r-- 892 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--source include/have_innodb_max_16k.inc
--echo # Bug#25330449 ASSERT SIZE==SPACE->SIZE DURING BUF_READ_AHEAD_RANDOM

let $MYSQLD_DATADIR=`SELECT @@datadir`;
CREATE TABLE t1 (a INT NOT NULL, d INT NOT NULL, b BLOB NOT NULL, c
TEXT, INDEX(d), INDEX(a),  KEY (b(10), a, d), INDEX(c(120), b(120)),
INDEX(b(5), c(10), a) ) charset latin1 ENGINE=INNODB  ROW_FORMAT=COMPRESSED
KEY_BLOCK_SIZE=1;

--source include/shutdown_mysqld.inc
--remove_file $MYSQLD_DATADIR/ib_buffer_pool

--write_file $MYSQLD_DATADIR/ib_buffer_pool
EOF

--source include/start_mysqld.inc
SET GLOBAL innodb_random_read_ahead = 1;

call mtr.add_suppression("\\[ERROR\\].* '.*t1.ibd' read failed! - attempted to read 4 bytes, read only 0 bytes at offset 16418");
call mtr.add_suppression("\\[Warning\\].* Ignoring '.*t1.ibd' invalid tablespace ID in the header");

DROP TABLE t1;
SET GLOBAL innodb_random_read_ahead = default;