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
b546fe3b
Commit
b546fe3b
authored
Dec 03, 2002
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge sinisa@work.mysql.com:/home/bk/mysql-4.0
into sinisa.nasamreza.org:/mnt/work/mysql-4.0
parents
58dab902
2a6dcae8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
innobase/row/row0sel.c
innobase/row/row0sel.c
+10
-2
No files found.
innobase/row/row0sel.c
View file @
b546fe3b
...
...
@@ -2702,14 +2702,22 @@ row_search_for_mysql(
unique_search_from_clust_index
=
TRUE
;
if
(
prebuilt
->
select_lock_type
==
LOCK_NONE
if
(
trx
->
mysql_n_tables_locked
==
0
&&
prebuilt
->
select_lock_type
==
LOCK_NONE
&&
trx
->
isolation_level
>
TRX_ISO_READ_UNCOMMITTED
&&
trx
->
read_view
)
{
/* This is a SELECT query done as a consistent read,
and the read view has already been allocated:
let us try a search shortcut through the hash
index */
index.
NOTE that we must also test that
mysql_n_tables_locked == 0, because this might
also be INSERT INTO ... SELECT ... or
CREATE TABLE ... SELECT ... . Our algorithm is
NOT prepared to inserts interleaved with the SELECT,
and if we try that, we can deadlock on the adaptive
hash index semaphore! */
if
(
btr_search_latch
.
writer
!=
RW_LOCK_NOT_LOCKED
)
{
/* There is an x-latch request: release
...
...
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