We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69da361 commit 725ce0fCopy full SHA for 725ce0f
sql/sql_class.cc
@@ -1650,6 +1650,8 @@ void THD::free_connection()
1650
net.vio= 0;
1651
net_end(&net);
1652
#endif
1653
+ if (!cleanup_done)
1654
+ cleanup();
1655
ha_close_connection(this);
1656
plugin_thdvar_cleanup(this);
1657
mysql_audit_free_thd(this);
@@ -1719,8 +1721,6 @@ THD::~THD()
1719
1721
1720
1722
if (!free_connection_done)
1723
free_connection();
- if (!cleanup_done)
- cleanup();
1724
1725
mdl_context.destroy();
1726
0 commit comments