mirror of
https://github.com/MariaDB/server.git
synced 2025-07-18 23:03:28 +03:00
Problem was the parsing of test suite files for various tags and options. This was done inefficiently, and include files were re-parsed for every place they were included. This caused a delay of 20 seconds or so before the first test started to run. By parsing more efficiently and re-using first parse for subsequent inclusion of the same file, time spent parsing is reduced to less than 1 second, and start appears instantaneous. (With this patch, full ./mtr runs in 3 minutes on my laptop (release build.) mysql-test/suite/innodb_plugin/t/innodb_bug52663.test: Test is fairly slow, so try to avoid getting stuck with it at the end while other workers are idle.
37 lines
972 B
Plaintext
37 lines
972 B
Plaintext
--source include/have_innodb_plugin.inc
|
|
|
|
--source include/long_test.inc
|
|
|
|
set session transaction isolation level read committed;
|
|
|
|
create table innodb_bug52663 (what varchar(5), id integer, count integer, primary key
|
|
(what, id)) engine=innodb;
|
|
insert into innodb_bug52663 values ('total', 0, 0);
|
|
begin;
|
|
|
|
connect (addconroot, localhost, root,,);
|
|
connection addconroot;
|
|
set session transaction isolation level read committed;
|
|
begin;
|
|
|
|
connection default;
|
|
update innodb_bug52663 set count = count + 1 where what = 'total' and id = 0;
|
|
select * from innodb_bug52663;
|
|
|
|
connection addconroot;
|
|
--error ER_LOCK_WAIT_TIMEOUT
|
|
update innodb_bug52663 set count = count + 1 where what = 'total' and id = 0;
|
|
select * from innodb_bug52663;
|
|
|
|
connection default;
|
|
commit;
|
|
|
|
connection addconroot;
|
|
update innodb_bug52663 set count = count + 1 where what = 'total' and id = 0;
|
|
commit;
|
|
select * from innodb_bug52663;
|
|
|
|
connection default;
|
|
select * from innodb_bug52663;
|
|
drop table innodb_bug52663;
|