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
03c3e515
Commit
03c3e515
authored
Aug 24, 2009
by
Joerg Bruehe
Browse files
Options
Browse Files
Download
Plain Diff
Automerge "trunk" -> "trunk-build".
parents
f9337e4b
8b72c02a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
storage/innobase/lock/lock0lock.c
storage/innobase/lock/lock0lock.c
+5
-2
No files found.
storage/innobase/lock/lock0lock.c
View file @
03c3e515
...
...
@@ -3574,7 +3574,8 @@ lock_table_remove_low(
and lock_grant()). Therefore it can be empty and we
need to check for that. */
if
(
!
ib_vector_is_empty
(
trx
->
autoinc_locks
))
{
if
(
!
lock_get_wait
(
lock
)
&&
!
ib_vector_is_empty
(
trx
->
autoinc_locks
))
{
lock_t
*
autoinc_lock
;
autoinc_lock
=
ib_vector_pop
(
trx
->
autoinc_locks
);
...
...
@@ -3647,8 +3648,10 @@ lock_table_enqueue_waiting(
if
(
lock_deadlock_occurs
(
lock
,
trx
))
{
lock_reset_lock_and_trx_wait
(
lock
);
/* The order here is important, we don't want to
lose the state of the lock before calling remove. */
lock_table_remove_low
(
lock
);
lock_reset_lock_and_trx_wait
(
lock
);
return
(
DB_DEADLOCK
);
}
...
...
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