MXS-2266: Close prepared statements with internal ID

The ID used to store the prepared statements uses the internal ID and
using the external ID caused unwanted memory use and a false warning.
This commit is contained in:
Markus Mäkelä
2019-01-16 11:22:26 +02:00
parent f5f6a12484
commit ba40916d4a
2 changed files with 13 additions and 2 deletions

View File

@ -451,6 +451,7 @@ bool RWSplitSession::route_session_write(GWBUF* querybuf, uint8_t command, uint3
}
else if (qc_query_is_type(type, QUERY_TYPE_DEALLOC_PREPARE))
{
mxb_assert(!mxs_mysql_is_ps_command(m_qc.current_route_info().command()));
m_qc.ps_erase(querybuf);
}