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
76a15f84
Commit
76a15f84
authored
Apr 13, 2005
by
jan@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug where next-key locking doesn't allow the insert which does
not produce phantom (bug #9354).
parent
32221d9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
innobase/row/row0sel.c
innobase/row/row0sel.c
+14
-0
No files found.
innobase/row/row0sel.c
View file @
76a15f84
...
@@ -3686,6 +3686,20 @@ row_search_for_mysql(
...
@@ -3686,6 +3686,20 @@ row_search_for_mysql(
}
}
}
}
/* If a constant search tuple is found directly from
the cluster index we lock only a record.
For example: WHERE a >= 100, where a is primary key */
if
(
index
==
clust_index
&&
match_mode
==
ROW_SEL_OPEN_CURSOR
&&
mode
==
PAGE_CUR_GE
&&
dtuple_get_n_fields_cmp
(
search_tuple
)
==
dict_index_get_n_unique
(
index
)
&&
!
cmp_dtuple_rec
(
search_tuple
,
rec
,
offsets
))
{
lock_type
=
LOCK_REC_NOT_GAP
;
}
err
=
sel_set_rec_lock
(
rec
,
index
,
offsets
,
err
=
sel_set_rec_lock
(
rec
,
index
,
offsets
,
prebuilt
->
select_lock_type
,
prebuilt
->
select_lock_type
,
lock_type
,
thr
);
lock_type
,
thr
);
...
...
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