Skip to content

Commit 7fb03d7

Browse files
committed
Merge bb-10.2-ext into 10.3
2 parents 09c5c33 + 1c4b6af commit 7fb03d7

Some content is hidden

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

47 files changed

+1015
-224
lines changed

extra/mariabackup/xtrabackup.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4044,7 +4044,7 @@ xb_space_create_file(
40444044
const page_size_t page_size(flags);
40454045

40464046
if (!page_size.is_compressed()) {
4047-
buf_flush_init_for_writing(NULL, page, NULL, 0, false);
4047+
buf_flush_init_for_writing(NULL, page, NULL, 0);
40484048

40494049
ret = os_file_write(IORequestWrite, path, *file, page, 0,
40504050
UNIV_PAGE_SIZE);
@@ -4061,7 +4061,7 @@ xb_space_create_file(
40614061
page_zip.m_end = page_zip.m_nonempty =
40624062
page_zip.n_blobs = 0;
40634063

4064-
buf_flush_init_for_writing(NULL, page, &page_zip, 0, false);
4064+
buf_flush_init_for_writing(NULL, page, &page_zip, 0);
40654065

40664066
ret = os_file_write(IORequestWrite, path, *file,
40674067
page_zip.data, 0, zip_size);

mysql-test/lib/My/Tee.pm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
package My::Tee;
2+
use IO::Handle;
23

34
# see PerlIO::via
45

@@ -16,6 +17,7 @@ sub WRITE
1617
{
1718
my ($obj, $buf, $fh) = @_;
1819
print $fh $buf;
20+
$fh->flush;
1921
print $copyfh $buf;
2022
return length($buf);
2123
}

mysql-test/r/query_cache.result

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2168,6 +2168,25 @@ show status like "Qcache_hits";
21682168
Variable_name Value
21692169
Qcache_hits 1
21702170
drop table t1;
2171+
#
2172+
# MDEV-15328: MariaDB 10.2.13 Crashes upon CALL PROCEDURE PARAM
2173+
# LAST_INSERT_ID ()
2174+
# (part 2, part 1 is in sp.test)
2175+
#
2176+
create table t1 (a int);
2177+
insert into t1 values (1);
2178+
CREATE FUNCTION foo (i INT UNSIGNED ) RETURNS int deterministic RETURN 1;
2179+
show status like "Qcache_queries_in_cache";
2180+
Variable_name Value
2181+
Qcache_queries_in_cache 0
2182+
SELECT foo( LAST_INSERT_ID() ) from t1;
2183+
foo( LAST_INSERT_ID() )
2184+
1
2185+
show status like "Qcache_queries_in_cache";
2186+
Variable_name Value
2187+
Qcache_queries_in_cache 0
2188+
DROP FUNCTION foo;
2189+
drop table t1;
21712190
restore defaults
21722191
SET GLOBAL query_cache_type= default;
21732192
SET GLOBAL query_cache_size= default;

mysql-test/r/sp.result

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8337,6 +8337,14 @@ drop procedure p1;
83378337
drop procedure p2;
83388338
drop procedure p3;
83398339
#
8340+
# MDEV-15328: MariaDB 10.2.13 Crashes upon CALL PROCEDURE PARAM
8341+
# LAST_INSERT_ID ()
8342+
# (part 1, part 2 is in query_cache.test)
8343+
#
8344+
CREATE PROCEDURE foo ( IN i INT UNSIGNED ) BEGIN END;
8345+
CALL foo( LAST_INSERT_ID() );
8346+
DROP PROCEDURE foo;
8347+
#
83408348
# Start of 10.3 tests
83418349
#
83428350
#

mysql-test/r/type_decimal.result

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,6 +1020,22 @@ cast('-0.0' as decimal(5,1)) < 0
10201020
# End of 5.5 tests
10211021
#
10221022
#
1023+
# Start of 10.2 tests
1024+
#
1025+
#
1026+
# MDEV-15420 Wrong result for CAST from TIME or DATETIME with zero integer part and non-zero microseconds to DECIMAL(X,Y)
1027+
#
1028+
SET sql_mode='';
1029+
SELECT
1030+
CAST(TIMESTAMP'0000-00-00 00:00:00.123456' AS DECIMAL(10,6)) AS c1,
1031+
CAST(TIME'00:00:00.123456' AS DECIMAL(10,6)) AS c2;
1032+
c1 c2
1033+
0.123456 0.123456
1034+
SET sql_mode=DEFAULT;
1035+
#
1036+
# End of 10.2 tests
1037+
#
1038+
#
10231039
# Start of 10.3 tests
10241040
#
10251041
#

mysql-test/r/warnings.result

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,3 +358,15 @@ Error 1062 Duplicate entry '11' for key 'a'
358358

359359
DROP TABLE t1;
360360
DROP FUNCTION f1;
361+
connect con1,localhost,root,,;
362+
SELECT TIME('10:10:10.11111111111');
363+
TIME('10:10:10.11111111111')
364+
10:10:10.111111
365+
Warnings:
366+
Note 1292 Truncated incorrect time value: '10:10:10.11111111111'
367+
disconnect con1;
368+
connect con2,localhost,root,,;
369+
SHOW WARNINGS;
370+
Level Code Message
371+
disconnect con2;
372+
connection default;

mysql-test/r/xa.result

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,3 +323,24 @@ XA ROLLBACK 'xid1';
323323
connection default;
324324
DROP TABLE t1, t2;
325325
disconnect con2;
326+
CREATE TABLE t1 (pk INT PRIMARY KEY) ENGINE=InnoDB;
327+
CREATE TABLE t2 (pk INT PRIMARY KEY) ENGINE=InnoDB;
328+
INSERT INTO t2 VALUES (1),(2);
329+
CREATE TABLE t3 (i INT) ENGINE=InnoDB;
330+
XA BEGIN 'xid1';
331+
REPLACE INTO t1 SELECT * FROM t2;
332+
connect con1,localhost,root,,test;
333+
XA BEGIN 'xid2';
334+
INSERT INTO t1 SELECT * FROM t2;
335+
connection default;
336+
REPLACE INTO t2 SELECT * FROM t2;
337+
connection con1;
338+
disconnect con1;
339+
connect con2,localhost,root,,test;
340+
INSERT INTO t3 VALUES (1);
341+
XA BEGIN 'xid3';
342+
disconnect con2;
343+
connection default;
344+
XA END 'xid1';
345+
XA ROLLBACK 'xid1';
346+
DROP TABLE t1, t2, t3;

mysql-test/suite/encryption/disabled.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
innodb_scrub : MDEV-8139 scrubbing does not work reliably
1414
innodb_scrub_background : MDEV-8139 scrubbing does not work reliably
1515
innodb-redo-badkey : MDEV-13893 / MDEV-12699 Improve crash recovery of corrupted data pages
16-
innodb_encryption-page-compression : MDEV-14814 wait condition timeout
16+

mysql-test/suite/encryption/r/innodb-discard-import.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,6 @@ NOT FOUND /barfoo/ in t2.ibd
129129
# t3 yes on expecting NOT FOUND
130130
NOT FOUND /tmpres/ in t3.ibd
131131
# t4 yes on expecting NOT FOUND
132-
NOT FOUND /mysql/ in t4.ibd
132+
# MDEV-15527 FIXME: Enable this test!
133133
DROP PROCEDURE innodb_insert_proc;
134134
DROP TABLE t1,t2,t3,t4;

mysql-test/suite/encryption/r/innodb_encryption-page-compression.result

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
SET GLOBAL innodb_file_per_table = ON;
21
SET GLOBAL innodb_encryption_threads = 4;
3-
SET GLOBAL innodb_encrypt_tables = on;
42
set global innodb_compression_algorithm = 1;
53
create table innodb_normal (c1 int, b char(20)) engine=innodb;
64
show warnings;
@@ -166,7 +164,6 @@ innodb_page_compressed7, innodb_page_compressed8,
166164
innodb_page_compressed9 for export;
167165
unlock tables;
168166
# Wait until dirty pages are compressed and encrypted 2
169-
unlock tables;
170167
SELECT variable_value > 0 FROM information_schema.global_status WHERE variable_name = 'innodb_num_pages_decrypted';
171168
variable_value > 0
172169
1

0 commit comments

Comments
 (0)