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
16671b41
Commit
16671b41
authored
Oct 02, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
btr_cur_pessimistic_update(): Add some debug assertions
parent
e667cd70
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
storage/innobase/btr/btr0cur.cc
storage/innobase/btr/btr0cur.cc
+15
-6
No files found.
storage/innobase/btr/btr0cur.cc
View file @
16671b41
...
...
@@ -4726,14 +4726,23 @@ btr_cur_pessimistic_update(
rec
,
index
,
*
offsets
,
page_is_leaf
(
page
),
ULINT_UNDEFINED
,
offsets_heap
);
dtuple_t
*
new_entry
;
const
bool
is_metadata
=
rec_is_metadata
(
rec
,
index
);
ut_ad
(
!
is_metadata
||
(
flags
&
BTR_NO_LOCKING_FLAG
));
dtuple_t
*
new_entry
=
is_metadata
?
row_metadata_to_tuple
(
rec
,
index
,
*
offsets
,
&
n_ext
,
entry_heap
,
update
->
info_bits
)
:
row_rec_to_index_entry
(
rec
,
index
,
*
offsets
,
&
n_ext
,
entry_heap
);
if
(
UNIV_UNLIKELY
(
is_metadata
))
{
ut_ad
(
update
->
is_metadata
());
ut_ad
(
flags
&
BTR_NO_LOCKING_FLAG
);
ut_ad
(
index
->
is_instant
());
new_entry
=
row_metadata_to_tuple
(
rec
,
index
,
*
offsets
,
&
n_ext
,
entry_heap
,
update
->
info_bits
);
ut_ad
(
new_entry
->
n_fields
==
index
->
n_fields
+
update
->
is_alter_metadata
());
}
else
{
new_entry
=
row_rec_to_index_entry
(
rec
,
index
,
*
offsets
,
&
n_ext
,
entry_heap
);
}
/* The page containing the clustered index record
corresponding to new_entry is latched in mtr. If the
...
...
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