Fix to MXS-166
Added a call to thd->end_statement in parsing_info_done
This commit is contained in:
@ -1485,6 +1485,7 @@ void parsing_info_done(
|
|||||||
void* ptr)
|
void* ptr)
|
||||||
{
|
{
|
||||||
parsing_info_t* pi;
|
parsing_info_t* pi;
|
||||||
|
THD* thd;
|
||||||
|
|
||||||
if (ptr)
|
if (ptr)
|
||||||
{
|
{
|
||||||
@ -1496,6 +1497,8 @@ void parsing_info_done(
|
|||||||
|
|
||||||
if (mysql->thd != NULL)
|
if (mysql->thd != NULL)
|
||||||
{
|
{
|
||||||
|
thd = (THD*)mysql->thd;
|
||||||
|
thd->end_statement ();
|
||||||
(*mysql->methods->free_embedded_thd)(mysql);
|
(*mysql->methods->free_embedded_thd)(mysql);
|
||||||
mysql->thd = NULL;
|
mysql->thd = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user