mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
MDEV-4480 Assertion `inited == NONE' fails on closing a connection with open handler on temporary table
This commit is contained in:
@@ -1390,6 +1390,8 @@ void THD::cleanup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
mysql_ha_cleanup(this);
|
||||
|
||||
close_temporary_tables(this);
|
||||
|
||||
transaction.xid_state.xa_state= XA_NOTR;
|
||||
@@ -1397,7 +1399,6 @@ void THD::cleanup(void)
|
||||
xid_cache_delete(&transaction.xid_state);
|
||||
|
||||
locked_tables_list.unlock_locked_tables(this);
|
||||
mysql_ha_cleanup(this);
|
||||
|
||||
DBUG_ASSERT(open_tables == NULL);
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user