mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
THD:: cleanup() must be where it used to
between net_end() and ha_close_connection() this fixes lockups in main.locked_temporary-5955 and some other innodb tests.
This commit is contained in:
@ -1650,6 +1650,8 @@ void THD::free_connection()
|
||||
net.vio= 0;
|
||||
net_end(&net);
|
||||
#endif
|
||||
if (!cleanup_done)
|
||||
cleanup();
|
||||
ha_close_connection(this);
|
||||
plugin_thdvar_cleanup(this);
|
||||
mysql_audit_free_thd(this);
|
||||
@ -1719,8 +1721,6 @@ THD::~THD()
|
||||
#endif
|
||||
if (!free_connection_done)
|
||||
free_connection();
|
||||
if (!cleanup_done)
|
||||
cleanup();
|
||||
|
||||
mdl_context.destroy();
|
||||
|
||||
|
Reference in New Issue
Block a user