Fix to MXS-166

Added a call to thd->end_statement in parsing_info_done
This commit is contained in:
Markus Makela 2015-05-26 14:41:20 +03:00
parent 099fc0ba3c
commit 5f49a62724

View File

@ -1485,7 +1485,8 @@ void parsing_info_done(
void* ptr)
{
parsing_info_t* pi;
THD* thd;
if (ptr)
{
pi = (parsing_info_t *)ptr;
@ -1496,6 +1497,8 @@ void parsing_info_done(
if (mysql->thd != NULL)
{
thd = (THD*)mysql->thd;
thd->end_statement ();
(*mysql->methods->free_embedded_thd)(mysql);
mysql->thd = NULL;
}