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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
d970e339
Commit
d970e339
authored
Jun 18, 2003
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
row0sel.c, row0ins.c:
Fix error in previous push
parent
01eb3d1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
innobase/row/row0ins.c
innobase/row/row0ins.c
+4
-2
innobase/row/row0sel.c
innobase/row/row0sel.c
+12
-4
No files found.
innobase/row/row0ins.c
View file @
d970e339
...
@@ -792,8 +792,10 @@ row_ins_foreign_check_on_constraint(
...
@@ -792,8 +792,10 @@ row_ins_foreign_check_on_constraint(
clust_rec
=
btr_pcur_get_rec
(
cascade
->
pcur
);
clust_rec
=
btr_pcur_get_rec
(
cascade
->
pcur
);
if
(
btr_pcur_get_low_match
(
cascade
->
pcur
)
if
(
!
page_rec_is_user_rec
(
clust_rec
)
<
dict_index_get_n_unique
(
clust_index
))
{
||
btr_pcur_get_low_match
(
cascade
->
pcur
)
<
dict_index_get_n_unique
(
clust_index
))
{
fprintf
(
stderr
,
fprintf
(
stderr
,
"InnoDB: error in cascade of a foreign key op
\n
"
"InnoDB: error in cascade of a foreign key op
\n
"
"InnoDB: index %s table %s
\n
"
,
index
->
name
,
"InnoDB: index %s table %s
\n
"
,
index
->
name
,
...
...
innobase/row/row0sel.c
View file @
d970e339
...
@@ -609,8 +609,12 @@ row_sel_get_clust_rec(
...
@@ -609,8 +609,12 @@ row_sel_get_clust_rec(
clust_rec
=
btr_pcur_get_rec
(
&
(
plan
->
clust_pcur
));
clust_rec
=
btr_pcur_get_rec
(
&
(
plan
->
clust_pcur
));
if
(
btr_pcur_get_low_match
(
&
(
plan
->
clust_pcur
))
/* Note: only if the search ends up on a non-infimum record is the
<
dict_index_get_n_unique
(
index
))
{
low_match value the real match to the search tuple */
if
(
!
page_rec_is_user_rec
(
clust_rec
)
||
btr_pcur_get_low_match
(
&
(
plan
->
clust_pcur
))
<
dict_index_get_n_unique
(
index
))
{
ut_a
(
rec_get_deleted_flag
(
rec
));
ut_a
(
rec_get_deleted_flag
(
rec
));
ut_a
(
node
->
read_view
);
ut_a
(
node
->
read_view
);
...
@@ -2322,8 +2326,12 @@ row_sel_get_clust_rec_for_mysql(
...
@@ -2322,8 +2326,12 @@ row_sel_get_clust_rec_for_mysql(
clust_rec
=
btr_pcur_get_rec
(
prebuilt
->
clust_pcur
);
clust_rec
=
btr_pcur_get_rec
(
prebuilt
->
clust_pcur
);
if
(
btr_pcur_get_low_match
(
prebuilt
->
clust_pcur
)
/* Note: only if the search ends up on a non-infimum record is the
<
dict_index_get_n_unique
(
clust_index
))
{
low_match value the real match to the search tuple */
if
(
!
page_rec_is_user_rec
(
clust_rec
)
||
btr_pcur_get_low_match
(
prebuilt
->
clust_pcur
)
<
dict_index_get_n_unique
(
clust_index
))
{
/* In a rare case it is possible that no clust rec is found
/* In a rare case it is possible that no clust rec is found
for a delete-marked secondary index record: if in row0umod.c
for a delete-marked secondary index record: if in row0umod.c
...
...
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