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
8a5316a4
Commit
8a5316a4
authored
Jan 25, 2005
by
jani@ua141d10.elisa.omakaista.fi
Browse files
Options
Browse Files
Download
Plain Diff
Merge 4.1 -> 5.0
parents
a698e5a0
bb1fe733
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
19 deletions
+6
-19
innobase/row/row0ins.c
innobase/row/row0ins.c
+6
-19
No files found.
innobase/row/row0ins.c
View file @
8a5316a4
...
...
@@ -1120,7 +1120,6 @@ row_ins_check_foreign_constraint(
dict_table_t
*
check_table
;
dict_index_t
*
check_index
;
ulint
n_fields_cmp
;
ibool
unique_search
;
rec_t
*
rec
;
btr_pcur_t
pcur
;
ibool
moved
;
...
...
@@ -1240,14 +1239,6 @@ run_again:
dtuple_set_n_fields_cmp
(
entry
,
foreign
->
n_fields
);
if
(
dict_index_get_n_unique
(
check_index
)
<=
foreign
->
n_fields
)
{
/* We can just set a LOCK_REC_NOT_GAP type lock */
unique_search
=
TRUE
;
}
else
{
unique_search
=
FALSE
;
}
btr_pcur_open
(
check_index
,
entry
,
PAGE_CUR_GE
,
BTR_SEARCH_LEAF
,
&
pcur
,
&
mtr
);
...
...
@@ -1289,16 +1280,12 @@ run_again:
break
;
}
}
else
{
/* Found a matching record */
ulint
lock_type
;
/* Found a matching record. Lock only
a record because we can allow inserts
into gaps */
if
(
unique_search
)
{
lock_type
=
LOCK_REC_NOT_GAP
;
}
else
{
lock_type
=
LOCK_ORDINARY
;
}
err
=
row_ins_set_shared_rec_lock
(
lock_type
,
err
=
row_ins_set_shared_rec_lock
(
LOCK_REC_NOT_GAP
,
rec
,
check_index
,
offsets
,
thr
);
if
(
err
!=
DB_SUCCESS
)
{
...
...
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