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
8bc2fbb0
Commit
8bc2fbb0
authored
Jul 02, 2005
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
row0sel.c:
Optimize speed: no need to keep track of set new rec locks in a consistent read
parent
a9cf7ad0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
innobase/row/row0sel.c
innobase/row/row0sel.c
+11
-3
No files found.
innobase/row/row0sel.c
View file @
8bc2fbb0
...
...
@@ -3150,7 +3150,9 @@ row_search_for_mysql(
is set. Then we are able to remove the record locks set here on an
individual row. */
if
(
srv_locks_unsafe_for_binlog
)
{
if
(
srv_locks_unsafe_for_binlog
&&
prebuilt
->
select_lock_type
!=
LOCK_NONE
)
{
trx_reset_new_rec_lock_info
(
trx
);
}
...
...
@@ -3793,7 +3795,9 @@ no_gap_lock:
not a consistent read which might see an earlier version
of a non-clustered index record */
if
(
srv_locks_unsafe_for_binlog
)
{
if
(
srv_locks_unsafe_for_binlog
&&
prebuilt
->
select_lock_type
!=
LOCK_NONE
)
{
/* No need to keep a lock on a delete-marked record
if we do not want to use next-key locking. */
...
...
@@ -3845,7 +3849,9 @@ requires_clust_rec:
/* The record is delete marked: we can skip it */
if
(
srv_locks_unsafe_for_binlog
)
{
if
(
srv_locks_unsafe_for_binlog
&&
prebuilt
->
select_lock_type
!=
LOCK_NONE
)
{
/* No need to keep a lock on a delete-marked
record if we do not want to use next-key
locking. */
...
...
@@ -4013,6 +4019,8 @@ lock_wait_or_error:
thr
->
lock_state
=
QUE_THR_LOCK_ROW
;
if
(
row_mysql_handle_errors
(
&
err
,
trx
,
thr
,
NULL
))
{
/* It was a lock wait, and it ended */
thr
->
lock_state
=
QUE_THR_LOCK_NOLOCK
;
mtr_start
(
&
mtr
);
...
...
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