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
48b0cdc4
Commit
48b0cdc4
authored
Oct 30, 2002
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
row0undo.c:
Partial fix to a hang introduced in CREATE TABLE in the push last night
parent
93b301ba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
innobase/row/row0undo.c
innobase/row/row0undo.c
+14
-3
No files found.
innobase/row/row0undo.c
View file @
48b0cdc4
...
...
@@ -253,9 +253,17 @@ row_undo(
}
}
/* Prevent DROP TABLE etc. while we are rolling back this row */
/* Prevent DROP TABLE etc. while we are rolling back this row.
If we are doing a TABLE CREATE or some other dictionary operation,
then we already have dict_operation_lock locked in x-mode. Do not
try to lock again in s-mode, because that would cause a hang.
TODO: keep track when trx exactly has the latch locked!!!
TODO: trx->dict_operation tells it only in some cases!!! */
if
(
!
trx
->
dict_operation
)
{
rw_lock_s_lock
(
&
dict_operation_lock
);
}
if
(
node
->
state
==
UNDO_NODE_INSERT
)
{
...
...
@@ -267,7 +275,10 @@ row_undo(
err
=
row_undo_mod
(
node
,
thr
);
}
if
(
!
trx
->
dict_operation
)
{
rw_lock_s_unlock
(
&
dict_operation_lock
);
}
/* Do some cleanup */
btr_pcur_close
(
&
(
node
->
pcur
));
...
...
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