mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 10.1 into 10.2
This commit is contained in:
@ -3581,8 +3581,11 @@ sub do_before_run_mysqltest($)
|
|||||||
# to be able to distinguish them from manually created
|
# to be able to distinguish them from manually created
|
||||||
# version-controlled results, and to ignore them in git.
|
# version-controlled results, and to ignore them in git.
|
||||||
my $dest = "$base_file$suites.result~";
|
my $dest = "$base_file$suites.result~";
|
||||||
my @cmd = ($exe_patch, qw/--binary -r - -f -s -o/,
|
my @cmd = ($exe_patch);
|
||||||
$dest, $base_result, $resfile);
|
if ($^O eq "MSWin32") {
|
||||||
|
push @cmd, '--binary';
|
||||||
|
}
|
||||||
|
push @cmd, (qw/-r - -f -s -o/, $dest, $base_result, $resfile);
|
||||||
if (-w $resdir) {
|
if (-w $resdir) {
|
||||||
# don't rebuild a file if it's up to date
|
# don't rebuild a file if it's up to date
|
||||||
unless (-e $dest and -M $dest < -M $resfile
|
unless (-e $dest and -M $dest < -M $resfile
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
|
|
||||||
Copyright (c) 2012, 2016, Oracle and/or its affiliates. All Rights Reserved.
|
Copyright (c) 2012, 2016, Oracle and/or its affiliates. All Rights Reserved.
|
||||||
Copyright (c) 2015, 2018, MariaDB Corporation.
|
Copyright (c) 2015, 2020, MariaDB Corporation.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify it under
|
This program is free software; you can redistribute it and/or modify it under
|
||||||
the terms of the GNU General Public License as published by the Free Software
|
the terms of the GNU General Public License as published by the Free Software
|
||||||
@ -1353,8 +1353,8 @@ uncompressed:
|
|||||||
return(DB_ERROR);
|
return(DB_ERROR);
|
||||||
} else if (m_table->n_cols != m_n_cols) {
|
} else if (m_table->n_cols != m_n_cols) {
|
||||||
ib_errf(thd, IB_LOG_LEVEL_ERROR, ER_TABLE_SCHEMA_MISMATCH,
|
ib_errf(thd, IB_LOG_LEVEL_ERROR, ER_TABLE_SCHEMA_MISMATCH,
|
||||||
"Number of columns don't match, table has %u"
|
"Number of columns don't match, table has %u "
|
||||||
" columns but the tablespace meta-data file has "
|
"columns but the tablespace meta-data file has "
|
||||||
ULINTPF " columns",
|
ULINTPF " columns",
|
||||||
m_table->n_cols, m_n_cols);
|
m_table->n_cols, m_n_cols);
|
||||||
|
|
||||||
@ -1924,6 +1924,23 @@ PageConverter::update_index_page(
|
|||||||
return(DB_SUCCESS);
|
return(DB_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_index && block->page.offset == m_index->m_page_no) {
|
||||||
|
byte *b = FIL_PAGE_DATA + PAGE_BTR_SEG_LEAF + FSEG_HDR_SPACE
|
||||||
|
+ page;
|
||||||
|
mach_write_to_4(b, block->page.space);
|
||||||
|
|
||||||
|
memcpy(FIL_PAGE_DATA + PAGE_BTR_SEG_TOP + FSEG_HDR_SPACE
|
||||||
|
+ page, b, 4);
|
||||||
|
if (UNIV_LIKELY_NULL(block->page.zip.data)) {
|
||||||
|
memcpy(&block->page.zip.data[FIL_PAGE_DATA
|
||||||
|
+ PAGE_BTR_SEG_TOP
|
||||||
|
+ FSEG_HDR_SPACE], b, 4);
|
||||||
|
memcpy(&block->page.zip.data[FIL_PAGE_DATA
|
||||||
|
+ PAGE_BTR_SEG_LEAF
|
||||||
|
+ FSEG_HDR_SPACE], b, 4);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef UNIV_ZIP_DEBUG
|
#ifdef UNIV_ZIP_DEBUG
|
||||||
ut_a(!is_compressed_table()
|
ut_a(!is_compressed_table()
|
||||||
|| page_zip_validate(m_page_zip_ptr, page, m_index->m_srv_index));
|
|| page_zip_validate(m_page_zip_ptr, page, m_index->m_srv_index));
|
||||||
|
Reference in New Issue
Block a user