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
4b26ec8b
Commit
4b26ec8b
authored
Nov 30, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust btr_assert_not_corrupted()
parent
d9cd11dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
storage/innobase/btr/btr0btr.cc
storage/innobase/btr/btr0btr.cc
+1
-1
storage/innobase/include/btr0btr.h
storage/innobase/include/btr0btr.h
+7
-5
No files found.
storage/innobase/btr/btr0btr.cc
View file @
4b26ec8b
...
...
@@ -65,7 +65,7 @@ btr_corruption_report(
const
buf_block_t
*
block
,
/*!< in: corrupted block */
const
dict_index_t
*
index
)
/*!< in: index tree */
{
ib
::
error
()
ib
::
fatal
()
<<
"Flag mismatch in page "
<<
block
->
page
.
id
<<
" index "
<<
index
->
name
<<
" of table "
<<
index
->
table
->
name
;
...
...
storage/innobase/include/btr0btr.h
View file @
4b26ec8b
...
...
@@ -187,12 +187,14 @@ btr_corruption_report(
/** Assert that a B-tree page is not corrupted.
@param block buffer block containing a B-tree page
@param index the B-tree index */
#define btr_assert_not_corrupted(block, index) \
if ((ibool) !!page_is_comp(buf_block_get_frame(block)) \
!= dict_table_is_comp((index)->table)) { \
btr_corruption_report(block, index); \
ut_error; \
inline
void
btr_assert_not_corrupted
(
const
buf_block_t
*
block
,
const
dict_index_t
*
index
)
{
if
(
!!
page_is_comp
(
block
->
frame
)
!=
index
->
table
->
not_redundant
()
&&
!
index
->
dual_format
())
{
btr_corruption_report
(
block
,
index
);
}
}
/**************************************************************//**
Gets the root node of a tree and sx-latches it for segment access.
...
...
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