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
d52f32b3
Commit
d52f32b3
authored
Feb 27, 2007
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Prepare for a negative return from page_zip_max_ins_size().
parent
71cbde3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
btr/btr0cur.c
btr/btr0cur.c
+7
-2
include/ibuf0ibuf.ic
include/ibuf0ibuf.ic
+3
-1
No files found.
btr/btr0cur.c
View file @
d52f32b3
...
...
@@ -1166,7 +1166,9 @@ btr_cur_optimistic_insert(
lint
zip_max_ins
=
page_zip_max_ins_size
(
buf_block_get_page_zip
(
block
),
FALSE
);
if
(
UNIV_LIKELY
(
max_size
>
(
ulint
)
zip_max_ins
))
{
if
(
UNIV_UNLIKELY
(
zip_max_ins
<
0
))
{
max_size
=
0
;
}
else
if
(
UNIV_LIKELY
(
max_size
>
(
ulint
)
zip_max_ins
))
{
max_size
=
(
ulint
)
zip_max_ins
;
}
}
...
...
@@ -2779,7 +2781,10 @@ btr_cur_optimistic_delete(
lint
zip_max_ins
=
page_zip_max_ins_size
(
page_zip
,
FALSE
/* not clustered */
);
if
(
UNIV_LIKELY
(
max_ins_size
>
(
ulint
)
zip_max_ins
))
{
if
(
UNIV_UNLIKELY
(
zip_max_ins
<
0
))
{
max_ins_size
=
0
;
}
else
if
(
UNIV_LIKELY
(
max_ins_size
>
(
ulint
)
zip_max_ins
))
{
max_ins_size
=
(
ulint
)
zip_max_ins
;
}
}
...
...
include/ibuf0ibuf.ic
View file @
d52f32b3
...
...
@@ -212,7 +212,9 @@ ibuf_index_page_calc_free(
lint zip_max_ins = page_zip_max_ins_size(
page_zip, FALSE/* not clustered */);
if (UNIV_LIKELY(max_ins_size > (ulint) zip_max_ins)) {
if (UNIV_UNLIKELY(zip_max_ins < 0)) {
max_ins_size = 0;
} else if (UNIV_LIKELY(max_ins_size > (ulint) zip_max_ins)) {
max_ins_size = (ulint) zip_max_ins;
}
...
...
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