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
959ff093
Commit
959ff093
authored
Oct 04, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rec_init_offsets_comp_ordinary(): Fix a bug
parent
8b5a84b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
storage/innobase/include/page0cur.ic
storage/innobase/include/page0cur.ic
+1
-0
storage/innobase/rem/rem0rec.cc
storage/innobase/rem/rem0rec.cc
+1
-3
No files found.
storage/innobase/include/page0cur.ic
View file @
959ff093
...
@@ -280,6 +280,7 @@ page_cur_tuple_insert(
...
@@ -280,6 +280,7 @@ page_cur_tuple_insert(
*offsets = rec_get_offsets(rec, index, *offsets,
*offsets = rec_get_offsets(rec, index, *offsets,
page_is_leaf(cursor->block->frame),
page_is_leaf(cursor->block->frame),
ULINT_UNDEFINED, heap);
ULINT_UNDEFINED, heap);
ut_ad(size == rec_offs_size(*offsets));
if (buf_block_get_page_zip(cursor->block)) {
if (buf_block_get_page_zip(cursor->block)) {
rec = page_cur_insert_rec_zip(
rec = page_cur_insert_rec_zip(
...
...
storage/innobase/rem/rem0rec.cc
View file @
959ff093
...
@@ -348,9 +348,7 @@ rec_init_offsets_comp_ordinary(
...
@@ -348,9 +348,7 @@ rec_init_offsets_comp_ordinary(
ut_ad
(
index
->
is_instant
());
ut_ad
(
index
->
is_instant
());
/* fall through */
/* fall through */
case
REC_LEAF_TEMP_INSTANT
:
case
REC_LEAF_TEMP_INSTANT
:
n_fields
=
n_core
+
rec_get_n_add_field
(
nulls
)
n_fields
=
n_core
+
rec_get_n_add_field
(
nulls
)
+
1
;
+
(
!
index
->
table
->
instant
||
rec_is_metadata
(
rec
,
index
));
ut_ad
(
n_fields
<=
index
->
n_fields
);
ut_ad
(
n_fields
<=
index
->
n_fields
);
const
ulint
n_nullable
=
index
->
get_n_nullable
(
n_fields
);
const
ulint
n_nullable
=
index
->
get_n_nullable
(
n_fields
);
const
ulint
n_null_bytes
=
UT_BITS_IN_BYTES
(
n_nullable
);
const
ulint
n_null_bytes
=
UT_BITS_IN_BYTES
(
n_nullable
);
...
...
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