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
34346ecf
Commit
34346ecf
authored
Jul 02, 2003
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ha_innobase.cc:
Backport from 4.0 of the btr0sea.c latch hang fix
parent
2b054314
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
14 deletions
+6
-14
sql/ha_innobase.cc
sql/ha_innobase.cc
+6
-14
No files found.
sql/ha_innobase.cc
View file @
34346ecf
...
...
@@ -718,22 +718,20 @@ innobase_commit(
trx
=
check_trx_exists
(
thd
);
/* Release possible statement level resources */
innobase_release_stat_resources
(
trx
);
if
(
trx
->
auto_inc_lock
)
{
/* If we had reserved the auto-inc lock for
some table in this SQL statement, we release it now */
srv_conc_enter_innodb
(
trx
);
row_unlock_table_autoinc_for_mysql
(
trx
);
srv_conc_exit_innodb
(
trx
);
}
if
(
trx_handle
!=
(
void
*
)
&
innodb_dummy_stmt_trx_handle
)
{
innobase_commit_low
(
trx
);
}
/* Release possible statement level resources */
innobase_release_stat_resources
(
trx
);
trx_mark_sql_stat_end
(
trx
);
...
...
@@ -797,29 +795,23 @@ innobase_rollback(
trx
=
check_trx_exists
(
thd
);
/* Release possible statement level resources */
innobase_release_stat_resources
(
trx
);
if
(
trx
->
auto_inc_lock
)
{
/* If we had reserved the auto-inc lock for
some table in this SQL statement, we release it now */
srv_conc_enter_innodb
(
trx
);
row_unlock_table_autoinc_for_mysql
(
trx
);
srv_conc_exit_innodb
(
trx
);
}
srv_conc_enter_innodb
(
trx
);
if
(
trx_handle
!=
(
void
*
)
&
innodb_dummy_stmt_trx_handle
)
{
error
=
trx_rollback_for_mysql
(
trx
);
}
else
{
error
=
trx_rollback_last_sql_stat_for_mysql
(
trx
);
}
srv_conc_exit_innodb
(
trx
);
/* Release possible statement level resources */
innobase_release_stat_resources
(
trx
);
trx_mark_sql_stat_end
(
trx
);
DBUG_RETURN
(
convert_error_code_to_mysql
(
error
,
NULL
));
...
...
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