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
35ee4aa4
Commit
35ee4aa4
authored
Mar 31, 2021
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-13103 fixup: Actually fix a crash during IMPORT TABLESPACE
parent
99945d77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
storage/innobase/ibuf/ibuf0ibuf.cc
storage/innobase/ibuf/ibuf0ibuf.cc
+8
-6
No files found.
storage/innobase/ibuf/ibuf0ibuf.cc
View file @
35ee4aa4
/*****************************************************************************
/*****************************************************************************
Copyright (c) 1997, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 1997, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2016, 202
0
, MariaDB Corporation.
Copyright (c) 2016, 202
1
, 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
...
@@ -4922,6 +4922,13 @@ ibuf_check_bitmap_on_import(
...
@@ -4922,6 +4922,13 @@ ibuf_check_bitmap_on_import(
bitmap_page
=
ibuf_bitmap_get_map_page
(
bitmap_page
=
ibuf_bitmap_get_map_page
(
page_id_t
(
space_id
,
page_no
),
page_size
,
&
mtr
);
page_id_t
(
space_id
,
page_no
),
page_size
,
&
mtr
);
if
(
!
bitmap_page
)
{
mutex_exit
(
&
ibuf_mutex
);
ibuf_exit
(
&
mtr
);
mtr_commit
(
&
mtr
);
return
DB_CORRUPTION
;
}
if
(
buf_is_zeroes
(
span
<
const
byte
>
(
bitmap_page
,
if
(
buf_is_zeroes
(
span
<
const
byte
>
(
bitmap_page
,
page_size
.
physical
())))
{
page_size
.
physical
())))
{
/* This means we got all-zero page instead of
/* This means we got all-zero page instead of
...
@@ -4945,11 +4952,6 @@ ibuf_check_bitmap_on_import(
...
@@ -4945,11 +4952,6 @@ ibuf_check_bitmap_on_import(
continue
;
continue
;
}
}
if
(
!
bitmap_page
)
{
mutex_exit
(
&
ibuf_mutex
);
return
DB_CORRUPTION
;
}
for
(
i
=
FSP_IBUF_BITMAP_OFFSET
+
1
;
for
(
i
=
FSP_IBUF_BITMAP_OFFSET
+
1
;
i
<
page_size
.
physical
();
i
<
page_size
.
physical
();
i
++
)
{
i
++
)
{
...
...
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