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
a5a1f7d7
Commit
a5a1f7d7
authored
Dec 13, 2004
by
jan@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed problems with deadlocks on LOCK TABLES...WHERE ENGINE = InnoDB.
parent
1d3a32c7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
innobase/lock/lock0lock.c
innobase/lock/lock0lock.c
+5
-1
No files found.
innobase/lock/lock0lock.c
View file @
a5a1f7d7
...
...
@@ -3642,7 +3642,7 @@ lock_table(
/* Another trx has a request on the table in an incompatible
mode: this trx may have to wait */
err
=
lock_table_enqueue_waiting
(
mode
,
table
,
thr
);
err
=
lock_table_enqueue_waiting
(
mode
|
flags
,
table
,
thr
);
lock_mutex_exit_kernel
();
...
...
@@ -4438,6 +4438,7 @@ lock_table_queue_validate(
while
(
lock
)
{
ut_a
(((
lock
->
trx
)
->
conc_state
==
TRX_ACTIVE
)
||
((
lock
->
trx
)
->
conc_state
==
TRX_PREPARED
)
||
((
lock
->
trx
)
->
conc_state
==
TRX_COMMITTED_IN_MEMORY
));
if
(
!
lock_get_wait
(
lock
))
{
...
...
@@ -4485,6 +4486,7 @@ lock_rec_queue_validate(
while
(
lock
)
{
ut_a
(
lock
->
trx
->
conc_state
==
TRX_ACTIVE
||
lock
->
trx
->
conc_state
==
TRX_PREPARED
||
lock
->
trx
->
conc_state
==
TRX_COMMITTED_IN_MEMORY
);
...
...
@@ -4539,6 +4541,7 @@ lock_rec_queue_validate(
while
(
lock
)
{
ut_a
(
lock
->
trx
->
conc_state
==
TRX_ACTIVE
||
lock
->
trx
->
conc_state
==
TRX_PREPARED
||
lock
->
trx
->
conc_state
==
TRX_COMMITTED_IN_MEMORY
);
ut_a
(
trx_in_trx_list
(
lock
->
trx
));
...
...
@@ -4621,6 +4624,7 @@ lock_rec_validate_page(
ut_a
(
trx_in_trx_list
(
lock
->
trx
));
ut_a
(
lock
->
trx
->
conc_state
==
TRX_ACTIVE
||
lock
->
trx
->
conc_state
==
TRX_PREPARED
||
lock
->
trx
->
conc_state
==
TRX_COMMITTED_IN_MEMORY
);
for
(
i
=
nth_bit
;
i
<
lock_rec_get_n_bits
(
lock
);
i
++
)
{
...
...
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