mirror of
https://github.com/MariaDB/server.git
synced 2025-04-26 11:49:09 +03:00
This test was using a sleep of 1 second in an attempt to ensure that the timestamp that is part of an InnoDB status string would increase. This not only prolongs the test execution time by 1+1 seconds, but it also is inaccurate. It is possible that the actual sleep duration is less than a second. Let us wait for the creation of the file ib_buffer_pool and then wait for the buffer pool dump completion. In that way, the test can complete in a dozen or two milliseconds (1% of the previous duration) and work more reliably.
11 lines
418 B
Plaintext
11 lines
418 B
Plaintext
CREATE TABLE tab5 (col1 int auto_increment primary key,
|
|
col2 VARCHAR(25), col3 varchar(25)) ENGINE=InnoDB;
|
|
CREATE INDEX idx1 ON tab5(col2(10));
|
|
CREATE INDEX idx2 ON tab5(col3(10));
|
|
SET GLOBAL innodb_buffer_pool_dump_pct=100;
|
|
SET GLOBAL innodb_buffer_pool_dump_now=ON;
|
|
SET GLOBAL innodb_buffer_pool_dump_pct=1;
|
|
SET GLOBAL innodb_buffer_pool_dump_now=ON;
|
|
SET GLOBAL innodb_buffer_pool_dump_pct=DEFAULT;
|
|
DROP TABLE tab5;
|