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
be51d6ae
Commit
be51d6ae
authored
Nov 07, 2002
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
row0mysql.c:
Backport from 4.0: Fix corruption of ON DELETE CASCADE in lock wait timeout
parent
57152522
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
innobase/row/row0mysql.c
innobase/row/row0mysql.c
+19
-4
No files found.
innobase/row/row0mysql.c
View file @
be51d6ae
...
@@ -1012,10 +1012,25 @@ row_update_cascade_for_mysql(
...
@@ -1012,10 +1012,25 @@ row_update_cascade_for_mysql(
err
=
trx
->
error_state
;
err
=
trx
->
error_state
;
/* Note that the cascade node is a subnode of another InnoDB
query graph node. We do a normal lock wait in this node, but
all errors are handled by the parent node. */
if
(
err
==
DB_LOCK_WAIT
)
{
if
(
err
==
DB_LOCK_WAIT
)
{
/* Handle lock wait here */
que_thr_stop_for_mysql
(
thr
);
que_thr_stop_for_mysql
(
thr
);
row_mysql_handle_errors
(
&
err
,
trx
,
thr
,
NULL
);
srv_suspend_mysql_thread
(
thr
);
/* Note that a lock wait may also end in a lock wait timeout */
if
(
trx
->
error_state
!=
DB_SUCCESS
)
{
return
(
trx
->
error_state
);
}
/* Retry operation after a normal lock wait */
goto
run_again
;
goto
run_again
;
}
}
...
...
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