Skip to content

Commit 9e43ca8

Browse files
committed
Merge 10.1 into 10.2
2 parents ccaec18 + f8166a0 commit 9e43ca8

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

mysql-test/mysql-test-run.pl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3581,8 +3581,11 @@ ($)
35813581
# to be able to distinguish them from manually created
35823582
# version-controlled results, and to ignore them in git.
35833583
my $dest = "$base_file$suites.result~";
3584-
my @cmd = ($exe_patch, qw/--binary -r - -f -s -o/,
3585-
$dest, $base_result, $resfile);
3584+
my @cmd = ($exe_patch);
3585+
if ($^O eq "MSWin32") {
3586+
push @cmd, '--binary';
3587+
}
3588+
push @cmd, (qw/-r - -f -s -o/, $dest, $base_result, $resfile);
35863589
if (-w $resdir) {
35873590
# don't rebuild a file if it's up to date
35883591
unless (-e $dest and -M $dest < -M $resfile

storage/xtradb/row/row0import.cc

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*****************************************************************************
22
33
Copyright (c) 2012, 2016, Oracle and/or its affiliates. All Rights Reserved.
4-
Copyright (c) 2015, 2018, MariaDB Corporation.
4+
Copyright (c) 2015, 2020, MariaDB Corporation.
55
66
This program is free software; you can redistribute it and/or modify it under
77
the terms of the GNU General Public License as published by the Free Software
@@ -1353,8 +1353,8 @@ row_import::match_schema(
13531353
return(DB_ERROR);
13541354
} else if (m_table->n_cols != m_n_cols) {
13551355
ib_errf(thd, IB_LOG_LEVEL_ERROR, ER_TABLE_SCHEMA_MISMATCH,
1356-
"Number of columns don't match, table has %u"
1357-
" columns but the tablespace meta-data file has "
1356+
"Number of columns don't match, table has %u "
1357+
"columns but the tablespace meta-data file has "
13581358
ULINTPF " columns",
13591359
m_table->n_cols, m_n_cols);
13601360

@@ -1924,6 +1924,23 @@ PageConverter::update_index_page(
19241924
return(DB_SUCCESS);
19251925
}
19261926

1927+
if (m_index && block->page.offset == m_index->m_page_no) {
1928+
byte *b = FIL_PAGE_DATA + PAGE_BTR_SEG_LEAF + FSEG_HDR_SPACE
1929+
+ page;
1930+
mach_write_to_4(b, block->page.space);
1931+
1932+
memcpy(FIL_PAGE_DATA + PAGE_BTR_SEG_TOP + FSEG_HDR_SPACE
1933+
+ page, b, 4);
1934+
if (UNIV_LIKELY_NULL(block->page.zip.data)) {
1935+
memcpy(&block->page.zip.data[FIL_PAGE_DATA
1936+
+ PAGE_BTR_SEG_TOP
1937+
+ FSEG_HDR_SPACE], b, 4);
1938+
memcpy(&block->page.zip.data[FIL_PAGE_DATA
1939+
+ PAGE_BTR_SEG_LEAF
1940+
+ FSEG_HDR_SPACE], b, 4);
1941+
}
1942+
}
1943+
19271944
#ifdef UNIV_ZIP_DEBUG
19281945
ut_a(!is_compressed_table()
19291946
|| page_zip_validate(m_page_zip_ptr, page, m_index->m_srv_index));

0 commit comments

Comments
 (0)