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
df8f6056
Commit
df8f6056
authored
May 31, 2004
by
marko@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
InnoDB: Do not get a lock for consistent reads (Bug #3894)
parent
ce55ee9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
sql/ha_innodb.cc
sql/ha_innodb.cc
+11
-0
No files found.
sql/ha_innodb.cc
View file @
df8f6056
...
...
@@ -4504,6 +4504,17 @@ ha_innobase::start_stmt(
prepared for an update of a row */
prebuilt
->
select_lock_type
=
LOCK_X
;
}
else
{
/* For other than temporary tables, we obtain
no lock for consistent read (plain SELECT), and
an exclusive lock for SELECT ... FOR UPDATE or
SELECT ... LOCK IN SHARE MODE. */
prebuilt
->
select_lock_type
=
thd
->
lex
.
sql_command
==
SQLCOM_SELECT
&&
thd
->
lex
.
lock_option
==
TL_READ
?
LOCK_NONE
:
LOCK_X
;
}
/* Set the MySQL flag to mark that there is an active transaction */
...
...
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