Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
9e43ca8e
Commit
9e43ca8e
authored
Apr 15, 2020
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.1 into 10.2
parents
ccaec18b
f8166a05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
5 deletions
+25
-5
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+5
-2
storage/xtradb/row/row0import.cc
storage/xtradb/row/row0import.cc
+20
-3
No files found.
mysql-test/mysql-test-run.pl
View file @
9e43ca8e
...
...
@@ -3581,8 +3581,11 @@ sub do_before_run_mysqltest($)
# to be able to distinguish them from manually created
# version-controlled results, and to ignore them in git.
my
$dest
=
"
$base_file$suites
.result~
";
my
@cmd
=
(
$exe_patch
,
qw/--binary -r - -f -s -o/
,
$dest
,
$base_result
,
$resfile
);
my
@cmd
=
(
$exe_patch
);
if
(
$^O
eq
"
MSWin32
")
{
push
@cmd
,
'
--binary
';
}
push
@cmd
,
(
qw/-r - -f -s -o/
,
$dest
,
$base_result
,
$resfile
);
if
(
-
w
$resdir
)
{
# don't rebuild a file if it's up to date
unless
(
-
e
$dest
and
-
M
$dest
<
-
M
$resfile
...
...
storage/xtradb/row/row0import.cc
View file @
9e43ca8e
/*****************************************************************************
Copyright (c) 2012, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2015, 20
18
, MariaDB Corporation.
Copyright (c) 2015, 20
20
, MariaDB Corporation.
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
...
...
@@ -1353,8 +1353,8 @@ row_import::match_schema(
return
(
DB_ERROR
);
}
else
if
(
m_table
->
n_cols
!=
m_n_cols
)
{
ib_errf
(
thd
,
IB_LOG_LEVEL_ERROR
,
ER_TABLE_SCHEMA_MISMATCH
,
"Number of columns don't match, table has %u"
"
columns but the tablespace meta-data file has "
"Number of columns don't match, table has %u
"
"columns but the tablespace meta-data file has "
ULINTPF
" columns"
,
m_table
->
n_cols
,
m_n_cols
);
...
...
@@ -1924,6 +1924,23 @@ PageConverter::update_index_page(
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
ut_a
(
!
is_compressed_table
()
||
page_zip_validate
(
m_page_zip_ptr
,
page
,
m_index
->
m_srv_index
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment