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
1b165720
Commit
1b165720
authored
May 14, 2020
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.1 into 10.2
parents
fc58c172
ee5152fc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
storage/innobase/buf/buf0buf.cc
storage/innobase/buf/buf0buf.cc
+6
-2
storage/xtradb/buf/buf0buf.cc
storage/xtradb/buf/buf0buf.cc
+7
-3
No files found.
storage/innobase/buf/buf0buf.cc
View file @
1b165720
...
...
@@ -6062,9 +6062,8 @@ buf_page_io_complete(buf_page_t* bpage, bool dblwr, bool evict)
err
=
buf_page_check_corrupt
(
bpage
,
space
);
database_corrupted:
if
(
err
!=
DB_SUCCESS
)
{
database_corrupted:
/* Not a real corruption if it was triggered by
error injection */
DBUG_EXECUTE_IF
(
...
...
@@ -6081,6 +6080,11 @@ buf_page_io_complete(buf_page_t* bpage, bool dblwr, bool evict)
goto
page_not_corrupt
;
);
if
(
uncompressed
&&
bpage
->
zip
.
data
)
{
memset
(
reinterpret_cast
<
buf_block_t
*>
(
bpage
)
->
frame
,
0
,
srv_page_size
);
}
if
(
err
==
DB_PAGE_CORRUPTED
)
{
ib
::
error
()
<<
"Database page corruption on disk"
...
...
storage/xtradb/buf/buf0buf.cc
View file @
1b165720
...
...
@@ -2,7 +2,7 @@
Copyright (c) 1995, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2008, Google Inc.
Copyright (c) 2013, 20
19
, MariaDB Corporation.
Copyright (c) 2013, 20
20
, MariaDB Corporation.
Portions of this file contain modifications contributed and copyrighted by
Google, Inc. Those modifications are gratefully acknowledged and are described
...
...
@@ -4939,9 +4939,8 @@ buf_page_io_complete(buf_page_t* bpage)
err
=
buf_page_check_corrupt
(
bpage
,
space
);
}
database_corrupted:
if
(
err
!=
DB_SUCCESS
)
{
database_corrupted:
/* Not a real corruption if it was triggered by
error injection */
DBUG_EXECUTE_IF
(
"buf_page_import_corrupt_failure"
,
...
...
@@ -4956,6 +4955,11 @@ buf_page_io_complete(buf_page_t* bpage)
goto
page_not_corrupt
;
);
if
(
uncompressed
&&
bpage
->
zip
.
data
)
{
memset
(
reinterpret_cast
<
buf_block_t
*>
(
bpage
)
->
frame
,
0
,
srv_page_size
);
}
if
(
err
==
DB_PAGE_CORRUPTED
)
{
ib_logf
(
IB_LOG_LEVEL_ERROR
,
"Database page corruption on disk"
...
...
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