MDEV-4480 Assertion `inited == NONE' fails on closing a connection with open handler on temporary table
This commit is contained in:
parent
6625fad8ca
commit
742899e59d
5
mysql-test/suite/handler/disconnect_4480.result
Normal file
5
mysql-test/suite/handler/disconnect_4480.result
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
create temporary table t1 as select 1;
|
||||||
|
handler t1 open;
|
||||||
|
handler t1 read next;
|
||||||
|
1
|
||||||
|
1
|
10
mysql-test/suite/handler/disconnect_4480.test
Normal file
10
mysql-test/suite/handler/disconnect_4480.test
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#
|
||||||
|
# MDEV-4480 Assertion `inited == NONE' fails on closing a connection with open handler on temporary table
|
||||||
|
#
|
||||||
|
|
||||||
|
--connect (con1,localhost,root,,)
|
||||||
|
create temporary table t1 as select 1;
|
||||||
|
handler t1 open;
|
||||||
|
handler t1 read next;
|
||||||
|
--disconnect con1
|
||||||
|
|
@ -1390,6 +1390,8 @@ void THD::cleanup(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
mysql_ha_cleanup(this);
|
||||||
|
|
||||||
close_temporary_tables(this);
|
close_temporary_tables(this);
|
||||||
|
|
||||||
transaction.xid_state.xa_state= XA_NOTR;
|
transaction.xid_state.xa_state= XA_NOTR;
|
||||||
@ -1397,7 +1399,6 @@ void THD::cleanup(void)
|
|||||||
xid_cache_delete(&transaction.xid_state);
|
xid_cache_delete(&transaction.xid_state);
|
||||||
|
|
||||||
locked_tables_list.unlock_locked_tables(this);
|
locked_tables_list.unlock_locked_tables(this);
|
||||||
mysql_ha_cleanup(this);
|
|
||||||
|
|
||||||
DBUG_ASSERT(open_tables == NULL);
|
DBUG_ASSERT(open_tables == NULL);
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user