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
3d647001
Commit
3d647001
authored
Oct 03, 2007
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Silence some more GCC 4.2.1 warnings.
parent
94755e4f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
11 deletions
+16
-11
btr/btr0btr.c
btr/btr0btr.c
+6
-3
include/rem0rec.h
include/rem0rec.h
+4
-0
include/rem0rec.ic
include/rem0rec.ic
+6
-8
No files found.
btr/btr0btr.c
View file @
3d647001
...
...
@@ -3296,7 +3296,7 @@ btr_validate_level(
/* Check father node pointers */
const
rec_t
*
node_ptr
;
rec_t
*
node_ptr
;
offsets
=
btr_page_get_father_block
(
offsets
,
heap
,
index
,
block
,
&
mtr
,
&
node_cur
);
...
...
@@ -3379,14 +3379,17 @@ btr_validate_level(
page_get_supremum_rec
(
father_page
)));
ut_a
(
btr_page_get_next
(
father_page
,
&
mtr
)
==
FIL_NULL
);
}
else
{
const
rec_t
*
right_node_ptr
=
page_rec_get_next
(
node_ptr
);
offsets
=
btr_page_get_father_block
(
offsets
,
heap
,
index
,
right_block
,
&
mtr
,
&
right_node_cur
);
if
(
page_rec_get_next
((
rec_t
*
)
node_ptr
)
if
(
right_node_ptr
!=
page_get_supremum_rec
(
father_page
))
{
if
(
btr_cur_get_rec
(
&
right_node_cur
)
!=
page_rec_get_next
((
rec_t
*
)
node_ptr
)
)
{
!=
right_node_ptr
)
{
ret
=
FALSE
;
fputs
(
"InnoDB: node pointer to"
" the right page is wrong
\n
"
,
...
...
include/rem0rec.h
View file @
3d647001
...
...
@@ -383,6 +383,7 @@ rec_offs_validate(
const
dict_index_t
*
index
,
/* in: record descriptor or NULL */
const
ulint
*
offsets
);
/* in: array returned by
rec_get_offsets() */
#ifdef UNIV_DEBUG
/****************************************************************
Updates debug data in offsets, in order to avoid bogus
rec_offs_validate() failures. */
...
...
@@ -394,6 +395,9 @@ rec_offs_make_valid(
const
dict_index_t
*
index
,
/* in: record descriptor */
ulint
*
offsets
);
/* in: array returned by
rec_get_offsets() */
#else
# define rec_offs_make_valid(rec, index, offsets) ((void) 0)
#endif
/* UNIV_DEBUG */
/****************************************************************
The following function is used to get the offset to the nth
...
...
include/rem0rec.ic
View file @
3d647001
...
...
@@ -974,6 +974,7 @@ rec_offs_validate(
}
return(TRUE);
}
#ifdef UNIV_DEBUG
/****************************************************************
Updates debug data in offsets, in order to avoid bogus
rec_offs_validate() failures. */
...
...
@@ -981,22 +982,19 @@ UNIV_INLINE
void
rec_offs_make_valid(
/*================*/
const rec_t* rec __attribute__((unused)),
/* in: record */
const dict_index_t* index __attribute__((unused)),
/* in: record descriptor */
ulint* offsets __attribute__((unused)))
/* in: array returned by rec_get_offsets() */
const rec_t* rec, /* in: record */
const dict_index_t* index, /* in: record descriptor */
ulint* offsets)/* in: array returned by
rec_get_offsets() */
{
ut_ad(rec);
ut_ad(index);
ut_ad(offsets);
#ifdef UNIV_DEBUG
ut_ad(rec_get_n_fields(rec, index) >= rec_offs_n_fields(offsets));
offsets[2] = (ulint) rec;
offsets[3] = (ulint) index;
#endif /* UNIV_DEBUG */
}
#endif /* UNIV_DEBUG */
/****************************************************************
The following function is used to get an offset to the nth
...
...
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