Skip to content

Commit 48becff

Browse files
committed
Merge 10.5 into 10.6
2 parents 8cc8222 + 8642453 commit 48becff

16 files changed

+120
-37
lines changed

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/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;
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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Test applies a large binlog, takes long under Valgrind with little benefit.
2+
--source include/not_valgrind.inc
13
--source include/have_innodb.inc
24
--source include/have_partition.inc
35
--source include/have_binlog_format_mixed_or_row.inc

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,7 @@ SET GLOBAL slave_parallel_threads=10;
2828
--replace_result $SERVER_MYPORT_1 SERVER_MYPORT_1
2929
eval 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;
3030

31-
# Block execution yet when the blocked query timestamp has been already accounted
32-
FLUSH TABLES WITH READ LOCK;
3331
--source include/start_slave.inc
34-
--let $slave_param = Seconds_Behind_Master
35-
--let $slave_param_value = 1
36-
--let $slave_param_comparison= >=
37-
--source include/wait_for_slave_param.inc
38-
UNLOCK TABLES;
3932

4033
--connection master
4134
CREATE TABLE t2 (a INT PRIMARY KEY) ENGINE=InnoDB;

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,17 @@
1919
--source include/master-slave.inc
2020

2121
connection slave;
22-
--let $connection_id=`SELECT id FROM information_schema.processlist where state LIKE 'Waiting for master to send event'`
22+
--let $i= 100
23+
while ($i > 0) {
24+
dec $i;
25+
--let $connection_id=`SELECT id FROM information_schema.processlist where state LIKE 'Waiting for master to send event'`
26+
if ($connection_id) {
27+
let $i= 0;
28+
}
29+
if ($i > 0) {
30+
--sleep 0.1
31+
}
32+
}
2333

2434
if(!$connection_id)
2535
{

mysys/crc32/crc32c_x86.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extern "C" unsigned crc32c_sse42(unsigned crc, const void* buf, size_t size);
3939

4040
constexpr uint32_t cpuid_ecx_SSE42= 1U << 20;
4141
constexpr uint32_t cpuid_ecx_SSE42_AND_PCLMUL= cpuid_ecx_SSE42 | 1U << 1;
42-
constexpr uint32_t cpuid_ecx_XSAVE= 1U << 26;
42+
constexpr uint32_t cpuid_ecx_AVX_AND_XSAVE= 1U << 28 | 1U << 27;
4343

4444
static uint32_t cpuid_ecx()
4545
{
@@ -395,7 +395,7 @@ static bool os_have_avx512()
395395

396396
static ATTRIBUTE_NOINLINE bool have_vpclmulqdq(uint32_t cpuid_ecx)
397397
{
398-
if (!(cpuid_ecx & cpuid_ecx_XSAVE) || !os_have_avx512())
398+
if ((~cpuid_ecx & cpuid_ecx_AVX_AND_XSAVE) || !os_have_avx512())
399399
return false;
400400
# ifdef _MSC_VER
401401
int regs[4];

sql/item.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4883,7 +4883,6 @@ class Item_string_with_introducer :public Item_string
48834883
}
48844884
Item *do_get_copy(THD *thd) const override
48854885
{ return get_item_copy<Item_string_with_introducer>(thd, this); }
4886-
Item *do_build_clone(THD *thd) const override { return get_copy(thd); }
48874886
};
48884887

48894888

@@ -4898,7 +4897,6 @@ class Item_string_sys :public Item_string
48984897
{ }
48994898
Item *do_get_copy(THD *thd) const override
49004899
{ return get_item_copy<Item_string_sys>(thd, this); }
4901-
Item *do_build_clone(THD *thd) const override { return get_copy(thd); }
49024900
};
49034901

49044902

@@ -4915,7 +4913,6 @@ class Item_string_ascii :public Item_string
49154913
{ }
49164914
Item *do_get_copy(THD *thd) const override
49174915
{ return get_item_copy<Item_string_ascii>(thd, this); }
4918-
Item *do_build_clone(THD *thd) const override { return get_copy(thd); }
49194916
};
49204917

49214918

@@ -4954,7 +4951,6 @@ class Item_static_string_func :public Item_string
49544951
}
49554952
Item *do_get_copy(THD *thd) const override
49564953
{ return get_item_copy<Item_static_string_func>(thd, this); }
4957-
Item *do_build_clone(THD *thd) const override { return get_copy(thd); }
49584954
};
49594955

49604956

@@ -4974,7 +4970,6 @@ class Item_partition_func_safe_string: public Item_string
49744970
}
49754971
Item *do_get_copy(THD *thd) const override
49764972
{ return get_item_copy<Item_partition_func_safe_string>(thd, this); }
4977-
Item *do_build_clone(THD *thd) const override { return get_copy(thd); }
49784973
};
49794974

49804975

@@ -5138,7 +5133,6 @@ class Item_bin_string: public Item_hex_hybrid
51385133
void print(String *str, enum_query_type query_type) override;
51395134
Item *do_get_copy(THD *thd) const override
51405135
{ return get_item_copy<Item_bin_string>(thd, this); }
5141-
Item *do_build_clone(THD *thd) const override { return get_copy(thd); }
51425136
};
51435137

51445138

0 commit comments

Comments
 (0)