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
3afae13b
Commit
3afae13b
authored
Nov 30, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.3 into 10.4
parents
b3742467
e46a3aa4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
storage/innobase/rem/rem0cmp.cc
storage/innobase/rem/rem0cmp.cc
+13
-9
No files found.
storage/innobase/rem/rem0cmp.cc
View file @
3afae13b
...
...
@@ -25,6 +25,7 @@ Created 7/1/1994 Heikki Tuuri
#include "rem0cmp.h"
#include "rem0rec.h"
#include "page0page.h"
#include "dict0mem.h"
#include "handler0alter.h"
...
...
@@ -787,20 +788,23 @@ cmp_dtuple_rec_with_match_bytes(
ulint
*
matched_fields
,
ulint
*
matched_bytes
)
{
ulint
n_cmp
=
dtuple_get_n_fields_cmp
(
dtuple
);
ulint
cur_field
;
/* current field number */
ulint
cur_bytes
;
int
ret
;
/* return value */
ut_ad
(
dtuple_check_typed
(
dtuple
));
ut_ad
(
rec_offs_validate
(
rec
,
index
,
offsets
));
ut_ad
(
!
(
REC_INFO_MIN_REC_FLAG
&
dtuple_get_info_bits
(
dtuple
)));
ut_ad
(
!
(
REC_INFO_MIN_REC_FLAG
&
rec_get_info_bits
(
rec
,
rec_offs_comp
(
offsets
))));
cur_field
=
*
matched_fields
;
cur_bytes
=
*
matched_bytes
;
if
(
UNIV_UNLIKELY
(
REC_INFO_MIN_REC_FLAG
&
rec_get_info_bits
(
rec
,
rec_offs_comp
(
offsets
))))
{
ut_ad
(
page_rec_is_first
(
rec
,
page_align
(
rec
)));
ut_ad
(
!
page_has_prev
(
page_align
(
rec
)));
ut_ad
(
rec_is_metadata
(
rec
,
*
index
));
return
1
;
}
ulint
cur_field
=
*
matched_fields
;
ulint
cur_bytes
=
*
matched_bytes
;
ulint
n_cmp
=
dtuple_get_n_fields_cmp
(
dtuple
);
int
ret
;
ut_ad
(
n_cmp
<=
dtuple_get_n_fields
(
dtuple
));
ut_ad
(
cur_field
<=
n_cmp
);
...
...
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