Skip to content

Commit cfcf27c

Browse files
committed
Merge 10.6 into 10.11
2 parents 22b48bb + 0e76c1b commit cfcf27c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1521
-1293
lines changed

extra/mariabackup/xtrabackup.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2100,7 +2100,7 @@ static int prepare_export()
21002100
IF_WIN("\"","") "\"%s\" --mysqld \"%s\""
21012101
" --defaults-extra-file=./backup-my.cnf --defaults-group-suffix=%s --datadir=."
21022102
" --innodb --innodb-fast-shutdown=0 --loose-partition"
2103-
" --innodb_purge_rseg_truncate_frequency=1 --innodb-buffer-pool-size=%llu"
2103+
" --innodb-buffer-pool-size=%llu"
21042104
" --console --skip-log-error --skip-log-bin --bootstrap %s< "
21052105
BOOTSTRAP_FILENAME IF_WIN("\"",""),
21062106
mariabackup_exe,
@@ -2114,7 +2114,7 @@ static int prepare_export()
21142114
IF_WIN("\"","") "\"%s\" --mysqld"
21152115
" --defaults-file=./backup-my.cnf --defaults-group-suffix=%s --datadir=."
21162116
" --innodb --innodb-fast-shutdown=0 --loose-partition"
2117-
" --innodb_purge_rseg_truncate_frequency=1 --innodb-buffer-pool-size=%llu"
2117+
" --innodb-buffer-pool-size=%llu"
21182118
" --console --log-error= --skip-log-bin --bootstrap %s< "
21192119
BOOTSTRAP_FILENAME IF_WIN("\"",""),
21202120
mariabackup_exe,

mysql-test/main/item_types.result

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,14 @@ SELECT * FROM v WHERE f = '10.5.20';
4242
f
4343
drop view v;
4444
#
45+
# MDEV-34785: Assertion failure in Item_func_or_sum::do_build_clone
46+
# (Item_func_not_all)
47+
#
48+
CREATE VIEW t AS SELECT 0 AS a;
49+
SELECT * FROM t WHERE a=ALL (SELECT 0);
50+
a
51+
0
52+
DROP VIEW t;
53+
#
4554
# End of 10.5 tests
4655
#

mysql-test/main/item_types.test

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ CREATE VIEW v AS SELECT version() AS f;
4646
SELECT * FROM v WHERE f = '10.5.20';
4747
drop view v;
4848

49+
--echo #
50+
--echo # MDEV-34785: Assertion failure in Item_func_or_sum::do_build_clone
51+
--echo # (Item_func_not_all)
52+
--echo #
53+
54+
CREATE VIEW t AS SELECT 0 AS a;
55+
SELECT * FROM t WHERE a=ALL (SELECT 0);
56+
DROP VIEW t;
57+
4958
--echo #
5059
--echo # End of 10.5 tests
5160
--echo #

mysql-test/main/subselect_innodb.result

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ id select_type table type possible_keys key key_len ref rows Extra
554554
#
555555
# MDEV-6081: ORDER BY+ref(const): selectivity is very incorrect (MySQL Bug#14338686)
556556
#
557+
insert into t2 select seq,seq,seq from seq_10000_to_11000;
557558
alter table t2 add key2 int;
558559
update t2 set key2=key1;
559560
alter table t2 add key(key2);

mysql-test/main/subselect_innodb.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,9 @@ from
558558
--echo #
559559
--echo # MDEV-6081: ORDER BY+ref(const): selectivity is very incorrect (MySQL Bug#14338686)
560560
--echo #
561+
--source include/have_sequence.inc
561562

563+
insert into t2 select seq,seq,seq from seq_10000_to_11000;
562564
alter table t2 add key2 int;
563565
update t2 set key2=key1;
564566
alter table t2 add key(key2);

mysql-test/suite/innodb/r/innodb_defrag_concurrent.result

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ disconnect con4;
7575
optimize table t1;
7676
Table Op Msg_type Msg_text
7777
test.t1 optimize status OK
78-
check table t1 extended;
78+
check table t1;
7979
Table Op Msg_type Msg_text
8080
test.t1 check status OK
8181
select count(*) from t1;
@@ -97,6 +97,7 @@ select count(stat_value) > 0 from mysql.innodb_index_stats where table_name like
9797
count(stat_value) > 0
9898
1
9999
drop table t1;
100+
delete from mysql.innodb_index_stats where table_name='t1';
100101
SET GLOBAL innodb_defragment_n_pages = @n_pages;
101102
SET GLOBAL innodb_defragment_stats_accuracy = @accuracy;
102103
SET GLOBAL innodb_stats_persistent = @sp;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ disconnect con3;
124124
disconnect con4;
125125

126126
optimize table t1;
127-
check table t1 extended;
127+
check table t1;
128128

129129
select count(*) from t1;
130130
select count(*) from t1 force index (second);
@@ -136,6 +136,7 @@ select count(stat_value) > 0 from mysql.innodb_index_stats where table_name like
136136
select count(stat_value) > 0 from mysql.innodb_index_stats where table_name like '%t1%' and stat_name in ('n_leaf_pages_defrag');
137137

138138
drop table t1;
139+
delete from mysql.innodb_index_stats where table_name='t1';
139140

140141
# reset system
141142
SET GLOBAL innodb_defragment_n_pages = @n_pages;

mysql-test/suite/mariabackup/slave_provision_nolock.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--source include/have_innodb.inc
22
--source include/have_log_bin.inc
3+
# Test does a lot of queries that take a lot of CPU under Valgrind.
4+
--source include/not_valgrind.inc
35

46
call mtr.add_suppression("Can't init tc log");
57
call mtr.add_suppression("Aborting");

mysql-test/suite/rpl/r/rpl_old_master.result

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ connection slave;
99
SET @old_parallel= @@GLOBAL.slave_parallel_threads;
1010
SET GLOBAL slave_parallel_threads=10;
1111
CHANGE MASTER TO master_host='127.0.0.1', master_port=SERVER_MYPORT_1, master_user='root', master_log_file='master-bin.000001', master_log_pos=4, master_use_gtid=no;
12-
FLUSH TABLES WITH READ LOCK;
1312
include/start_slave.inc
14-
include/wait_for_slave_param.inc [Seconds_Behind_Master]
15-
UNLOCK TABLES;
1613
connection master;
1714
CREATE TABLE t2 (a INT PRIMARY KEY) ENGINE=InnoDB;
1815
INSERT INTO t2 VALUES (1);

mysql-test/suite/rpl/t/rpl_create_drop_event.test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ SET GLOBAL event_scheduler=on;
1414
let $wait_condition= SELECT count(*)>0 FROM t1;
1515
--source include/wait_condition.inc
1616
SET GLOBAL event_scheduler=off;
17+
# If the time rolls to the next whole second just at this point, a new event
18+
# run may be scheduled. Wait for this to disappear, otherwise we see occasional
19+
# test failures if the table gets dropped before the extra event run completes.
20+
# Expect 5 connections: default, master, master1, server_1, binlog dump thread
21+
--let $wait_condition= SELECT COUNT(*) = 5 FROM INFORMATION_SCHEMA.PROCESSLIST;
22+
--source include/wait_condition.inc
1723
SELECT DISTINCT a FROM t1;
1824
DELETE FROM t1;
1925

0 commit comments

Comments
 (0)