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
e4901d95
Commit
e4901d95
authored
Aug 18, 2021
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.2 into 10.3
parents
1b45e05c
da6f4d51
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
mysql-test/suite/innodb/t/import_corrupted.test
mysql-test/suite/innodb/t/import_corrupted.test
+1
-0
sql/sql_lex.cc
sql/sql_lex.cc
+3
-2
storage/innobase/row/row0import.cc
storage/innobase/row/row0import.cc
+6
-5
No files found.
mysql-test/suite/innodb/t/import_corrupted.test
View file @
e4901d95
...
@@ -65,3 +65,4 @@ ALTER TABLE t2 IMPORT TABLESPACE;
...
@@ -65,3 +65,4 @@ ALTER TABLE t2 IMPORT TABLESPACE;
DROP
TABLE
t2
;
DROP
TABLE
t2
;
--
remove_file
$MYSQLD_DATADIR
/
test
/
tmp
.
ibd
--
remove_file
$MYSQLD_DATADIR
/
test
/
tmp
.
ibd
--
remove_file
$MYSQLD_DATADIR
/
test
/
tmp
.
cfg
sql/sql_lex.cc
View file @
e4901d95
...
@@ -2913,7 +2913,7 @@ bool st_select_lex::setup_ref_array(THD *thd, uint order_group_num)
...
@@ -2913,7 +2913,7 @@ bool st_select_lex::setup_ref_array(THD *thd, uint order_group_num)
prepared statement
prepared statement
*/
*/
Query_arena
*
arena
=
thd
->
stmt_arena
;
Query_arena
*
arena
=
thd
->
stmt_arena
;
const
uin
t
n_elems
=
(
n_sum_items
+
const
size_
t
n_elems
=
(
n_sum_items
+
n_child_sum_items
+
n_child_sum_items
+
item_list
.
elements
+
item_list
.
elements
+
select_n_reserved
+
select_n_reserved
+
...
@@ -2921,7 +2921,8 @@ bool st_select_lex::setup_ref_array(THD *thd, uint order_group_num)
...
@@ -2921,7 +2921,8 @@ bool st_select_lex::setup_ref_array(THD *thd, uint order_group_num)
select_n_where_fields
+
select_n_where_fields
+
order_group_num
+
order_group_num
+
hidden_bit_fields
+
hidden_bit_fields
+
fields_in_window_functions
)
*
5
;
fields_in_window_functions
)
*
(
size_t
)
5
;
DBUG_ASSERT
(
n_elems
%
5
==
0
);
if
(
!
ref_pointer_array
.
is_null
())
if
(
!
ref_pointer_array
.
is_null
())
{
{
/*
/*
...
...
storage/innobase/row/row0import.cc
View file @
e4901d95
...
@@ -689,9 +689,7 @@ dberr_t FetchIndexRootPages::operator()(buf_block_t* block) UNIV_NOTHROW
...
@@ -689,9 +689,7 @@ dberr_t FetchIndexRootPages::operator()(buf_block_t* block) UNIV_NOTHROW
const
page_t
*
page
=
get_frame
(
block
);
const
page_t
*
page
=
get_frame
(
block
);
index_id_t
id
=
btr_page_get_index_id
(
page
);
m_index
.
m_id
=
btr_page_get_index_id
(
page
);
m_index
.
m_id
=
id
;
m_index
.
m_page_no
=
block
->
page
.
id
.
page_no
();
m_index
.
m_page_no
=
block
->
page
.
id
.
page_no
();
/* Check that the tablespace flags match the table flags. */
/* Check that the tablespace flags match the table flags. */
...
@@ -1886,11 +1884,14 @@ PageConverter::update_index_page(
...
@@ -1886,11 +1884,14 @@ PageConverter::update_index_page(
if
(
is_free
(
block
->
page
.
id
.
page_no
()))
{
if
(
is_free
(
block
->
page
.
id
.
page_no
()))
{
return
(
DB_SUCCESS
);
return
(
DB_SUCCESS
);
}
else
if
((
id
=
btr_page_get_index_id
(
page
))
!=
m_index
->
m_id
&&
!
m_cfg
->
m_missing
)
{
}
else
if
((
id
=
btr_page_get_index_id
(
page
))
!=
m_index
->
m_id
)
{
row_index_t
*
index
=
find_index
(
id
);
row_index_t
*
index
=
find_index
(
id
);
if
(
UNIV_UNLIKELY
(
!
index
))
{
if
(
UNIV_UNLIKELY
(
!
index
))
{
if
(
m_cfg
->
m_missing
)
{
return
DB_SUCCESS
;
}
ib
::
error
()
<<
"Page for tablespace "
<<
m_space
ib
::
error
()
<<
"Page for tablespace "
<<
m_space
<<
" is index page with id "
<<
id
<<
" is index page with id "
<<
id
<<
" but that index is not found from"
<<
" but that index is not found from"
...
...
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