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
04f7dc92
Commit
04f7dc92
authored
Dec 14, 2001
by
heikki@donna.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rem0rec.ic:
Remove a theoretical overrun in adaptive hash index building
parent
3c3d967b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
innobase/include/rem0rec.ic
innobase/include/rem0rec.ic
+13
-1
No files found.
innobase/include/rem0rec.ic
View file @
04f7dc92
...
@@ -947,7 +947,8 @@ rec_get_converted_size(
...
@@ -947,7 +947,8 @@ rec_get_converted_size(
}
}
/****************************************************************
/****************************************************************
Folds a prefix of a physical record to a ulint. */
Folds a prefix of a physical record to a ulint. Folds only existing fields,
that is, checks that we do not run out of the record. */
UNIV_INLINE
UNIV_INLINE
ulint
ulint
rec_fold(
rec_fold(
...
@@ -963,6 +964,7 @@ rec_fold(
...
@@ -963,6 +964,7 @@ rec_fold(
byte* data;
byte* data;
ulint len;
ulint len;
ulint fold;
ulint fold;
ulint n_fields_rec;
ut_ad(rec_validate(rec));
ut_ad(rec_validate(rec));
ut_ad(n_fields <= rec_get_n_fields(rec));
ut_ad(n_fields <= rec_get_n_fields(rec));
...
@@ -971,6 +973,16 @@ rec_fold(
...
@@ -971,6 +973,16 @@ rec_fold(
/* Only the page supremum and infimum records have 1 field: */
/* Only the page supremum and infimum records have 1 field: */
ut_ad(rec_get_n_fields(rec) > 1);
ut_ad(rec_get_n_fields(rec) > 1);
n_fields_rec = rec_get_n_fields(rec);
if (n_fields > n_fields_rec) {
n_fields = n_fields_rec;
}
if (n_fields == n_fields_rec) {
n_bytes = 0;
}
fold = ut_fold_dulint(tree_id);
fold = ut_fold_dulint(tree_id);
for (i = 0; i < n_fields; i++) {
for (i = 0; i < n_fields; i++) {
...
...
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