Skip to content
/ server Public

Commit 0ac1c08

Browse files
committed
Merge 10.6 into 10.11
2 parents faf1a76 + b64db51 commit 0ac1c08

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

mysql-test/main/servers.result

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ CREATE SERVER s1 FOREIGN DATA WRAPPER mysql OPTIONS (HOST '127.0.0.1');
5353
ALTER TABLE mysql.servers ENGINE=innodb;
5454
FLUSH PRIVILEGES;
5555
drop server s1;
56+
ALTER TABLE mysql.servers ENGINE=Aria;
5657
#
5758
# MDEV-35622 SEGV, ASAN use-after-poison when reading system table with less than expected number of columns
5859
# MDEV-37777 upgrade from MySQL 5.7 regression, mysql.servers invalid structure

mysql-test/main/servers.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ CREATE SERVER s1 FOREIGN DATA WRAPPER mysql OPTIONS (HOST '127.0.0.1');
5353
ALTER TABLE mysql.servers ENGINE=innodb;
5454
FLUSH PRIVILEGES;
5555
drop server s1;
56+
# Restore the table back to original engine, to not disrupt following tests.
57+
ALTER TABLE mysql.servers ENGINE=Aria;
5658

5759
--echo #
5860
--echo # MDEV-35622 SEGV, ASAN use-after-poison when reading system table with less than expected number of columns

mysql-test/suite/innodb/t/gap_locks.test

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,23 @@ ELSE 'SERIALIZABLE' END`;
1818
eval SET TRANSACTION ISOLATION LEVEL $tx_isolation;
1919
BEGIN;
2020
DELETE FROM t1 WHERE b='2' AND c=2;
21-
--replace_regex /.*(\d+ lock struct...), heap size \d+(, \d+ row lock...).*/\1\2/
21+
# The SHOW ENGINE INNODB STATUS looks like this:
22+
#
23+
# ...
24+
# +LIST OF TRANSACTIONS FOR EACH SESSION:
25+
# +---TRANSACTION (0x7f1e08168300), not started
26+
# +0 lock struct(s), heap size 1144, 0 row lock(s)
27+
# +---TRANSACTION (0x7f1e08167780), not started
28+
# +0 lock struct(s), heap size 1144, 0 row lock(s)
29+
# +---TRANSACTION 25, ACTIVE 0 sec
30+
# +2 lock struct(s), heap size 1144, 1 row lock(s)
31+
# ...
32+
#
33+
# We want the lock struct(s) and row lock(s) of the ACTIVE transaction, but
34+
# not of any inactive ones. Note the use of non-greedy match ".*?", so that
35+
# we get the values for the ACTIVE transaction, not the last values in the
36+
# list.
37+
--replace_regex /.*---TRANSACTION \d+, ACTIVE.*?(\d+ lock struct...), heap size \d+(, \d+ row lock...).*/\1\2/
2238
SHOW ENGINE INNODB STATUS;
2339
ROLLBACK;
2440

0 commit comments

Comments
 (0)