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
6ef13978
Commit
6ef13978
authored
Jul 29, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-6497 InnoDB deadlocks on UNINSTALL PLUGIN
Free the trx of the current thd (if any) in innobase_end()
parent
0aa40c35
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
0 deletions
+36
-0
mysql-test/r/innodb_load_xa.result
mysql-test/r/innodb_load_xa.result
+13
-0
mysql-test/t/innodb_load_xa.test
mysql-test/t/innodb_load_xa.test
+7
-0
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+8
-0
storage/xtradb/handler/ha_innodb.cc
storage/xtradb/handler/ha_innodb.cc
+8
-0
No files found.
mysql-test/r/innodb_load_xa.result
View file @
6ef13978
...
...
@@ -4,4 +4,17 @@ Warning 1105 Cannot enable tc-log at run-time. XA features of InnoDB are disable
select engine,support,transactions,xa from information_schema.engines where engine='innodb';
engine support transactions xa
InnoDB YES YES NO
create table t1 (a int) engine=innodb;
start transaction;
insert t1 values (1);
insert t1 values (2);
commit;
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
mysqld-bin.000001 # Query # # use `test`; create table t1 (a int) engine=innodb
mysqld-bin.000001 # Query # # BEGIN
mysqld-bin.000001 # Query # # use `test`; insert t1 values (1)
mysqld-bin.000001 # Query # # use `test`; insert t1 values (2)
mysqld-bin.000001 # Query # # COMMIT
drop table t1;
uninstall plugin innodb;
mysql-test/t/innodb_load_xa.test
View file @
6ef13978
...
...
@@ -8,4 +8,11 @@ if (!$HA_INNODB_SO) {
}
install
plugin
innodb
soname
'ha_innodb'
;
select
engine
,
support
,
transactions
,
xa
from
information_schema
.
engines
where
engine
=
'innodb'
;
create
table
t1
(
a
int
)
engine
=
innodb
;
start
transaction
;
insert
t1
values
(
1
);
insert
t1
values
(
2
);
commit
;
--
source
include
/
show_binlog_events
.
inc
drop
table
t1
;
uninstall
plugin
innodb
;
storage/innobase/handler/ha_innodb.cc
View file @
6ef13978
...
...
@@ -2658,6 +2658,14 @@ innobase_end(
if
(
innodb_inited
)
{
THD
*
thd
=
current_thd
;
if
(
thd
)
{
// may be UNINSTALL PLUGIN statement
trx_t
*
trx
=
thd_to_trx
(
thd
);
if
(
trx
)
{
trx_free_for_mysql
(
trx
);
}
}
srv_fast_shutdown
=
(
ulint
)
innobase_fast_shutdown
;
innodb_inited
=
0
;
hash_table_free
(
innobase_open_tables
);
...
...
storage/xtradb/handler/ha_innodb.cc
View file @
6ef13978
...
...
@@ -3276,6 +3276,14 @@ innobase_end(
if
(
innodb_inited
)
{
THD
*
thd
=
current_thd
;
if
(
thd
)
{
// may be UNINSTALL PLUGIN statement
trx_t
*
trx
=
thd_to_trx
(
thd
);
if
(
trx
)
{
trx_free_for_mysql
(
trx
);
}
}
srv_fast_shutdown
=
(
ulint
)
innobase_fast_shutdown
;
innodb_inited
=
0
;
hash_table_free
(
innobase_open_tables
);
...
...
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