MXS-852: Map client PS handle to internal ID

Mapping the handles returned to the client to a session command ID allows
the mapping of client handle to the backend specific handle. Currently,
the mapping is used for diagnostic output only.
This commit is contained in:
Markus Mäkelä
2017-06-21 15:02:26 +03:00
parent 0aa0fa82b7
commit 77f78c4b20
6 changed files with 52 additions and 10 deletions

View File

@ -536,4 +536,13 @@ uint8_t mxs_mysql_get_command(GWBUF* buffer);
*/
bool mxs_mysql_extract_ps_response(GWBUF* buffer, MXS_PS_RESPONSE* out);
/**
* @brief Extract the ID of a COM_STMT_EXECUTE
*
* @param buffer Buffer containing a COM_STMT_EXECUTE packet
*
* @return The ID of the prepared statement being executed or 0 on failure
*/
uint32_t mxs_mysql_extract_execute(GWBUF* buffer);
MXS_END_DECLS