Skip to content
/ server Public

Commit ab2e0d4

Browse files
committed
Merge 10.11 into 11.4
2 parents 678ff03 + 0ac1c08 commit ab2e0d4

File tree

6 files changed

+27
-7
lines changed

6 files changed

+27
-7
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/main/ssl.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
connect ssl_con,localhost,root,,,,,SSL;
2-
select variable_name from performance_schema.status_by_thread where VARIABLE_NAME LIKE 'Ssl%';
2+
select variable_name from performance_schema.status_by_thread where VARIABLE_NAME LIKE 'Ssl%' and thread_id in($default_id, $ssl_con_id);
33
variable_name
44
Ssl_cipher
55
Ssl_cipher_list

mysql-test/main/ssl.test

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@
1212
--source include/default_charset.inc
1313
--source include/have_perfschema.inc
1414

15+
let $default_id=`select thread_id from performance_schema.threads where processlist_id=connection_id()`;
16+
1517
connect (ssl_con,localhost,root,,,,,SSL);
1618

17-
select variable_name from performance_schema.status_by_thread where VARIABLE_NAME LIKE 'Ssl%';
19+
let $ssl_con_id=`select thread_id from performance_schema.threads where processlist_id=connection_id()`;
20+
evalp select variable_name from performance_schema.status_by_thread where VARIABLE_NAME LIKE 'Ssl%' and thread_id in($default_id, $ssl_con_id);
1821

1922
# Check ssl turned on
2023
SELECT (VARIABLE_VALUE <> '') AS have_ssl FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='Ssl_cipher';

mysql-test/main/xa.test

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
--source include/not_embedded.inc
66

77
# Save the initial number of concurrent sessions
8-
--source include/count_sessions.inc
8+
let $count_sessions=1;
99

1010
call mtr.add_suppression("Deadlock found when trying to get lock; try restarting transaction");
1111
--disable_query_log
@@ -694,7 +694,6 @@ xa rollback 'test1';
694694
xa recover;
695695
drop table asd;
696696
disconnect con_tmp;
697-
--source include/wait_until_disconnected.inc
698697
connection default;
699698

700699
--echo # MDEV-30978: a read-only server should still allow the commit of
@@ -718,7 +717,6 @@ xa rollback '2';
718717

719718
--echo # Read-only disconnect case
720719

721-
--source include/count_sessions.inc
722720
connect (con1_ro,localhost,root,,);
723721
xa start '3';
724722
select 0;
@@ -732,7 +730,6 @@ xa recover;
732730
--error ER_XA_RBROLLBACK
733731
xa commit '3';
734732

735-
--source include/count_sessions.inc
736733
connect (con2_ro,localhost,root,,);
737734
xa start '4';
738735
select 0;
@@ -781,6 +778,7 @@ xa end 'r:foo';
781778
xa prepare 'r:foo';
782779
disconnect con1;
783780
connection default;
781+
--source include/wait_until_count_sessions.inc
784782
xa recover;
785783

786784
xa start 'r:bar';

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)