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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
20852452
Commit
20852452
authored
Aug 01, 2008
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: page_copy_rec_list_end(): Add the assertion ut_a(ret_pos > 0)
that was suggested by Sunny in Mantis issue#52.
parent
eebd7c48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
page/page0page.c
page/page0page.c
+8
-0
No files found.
page/page0page.c
View file @
20852452
...
...
@@ -598,6 +598,8 @@ page_copy_rec_list_end(
ut_ad
(
buf_block_get_frame
(
block
)
==
page
);
ut_ad
(
page_is_leaf
(
page
)
==
page_is_leaf
(
new_page
));
ut_ad
(
page_is_comp
(
page
)
==
page_is_comp
(
new_page
));
/* Here, "ret" may be pointing to a user record or the
predefined supremum record. */
if
(
UNIV_LIKELY_NULL
(
new_page_zip
))
{
log_mode
=
mtr_set_log_mode
(
mtr
,
MTR_LOG_NONE
);
...
...
@@ -620,6 +622,12 @@ page_copy_rec_list_end(
store the number of preceding records on the page. */
ulint
ret_pos
=
page_rec_get_n_recs_before
(
ret
);
/* Before copying, "ret" was the successor of
the predefined infimum record. It must still
have at least one predecessor (the predefined
infimum record, or a freshly copied record
that is smaller than "ret"). */
ut_a
(
ret_pos
>
0
);
if
(
UNIV_UNLIKELY
(
!
page_zip_reorganize
(
new_block
,
index
,
mtr
)))
{
...
...
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