MXS-1776: Fix utility functions
The COM_STMT_FETCH command will create a response. This was a readwritesplit-specific interpretation of the command and it was wrong. Also record the currently executed command event for session commands.
This commit is contained in:
@ -30,7 +30,8 @@ RWBackend::~RWBackend()
|
||||
|
||||
bool RWBackend::execute_session_command()
|
||||
{
|
||||
bool expect_response = mxs_mysql_command_will_respond(next_session_command()->get_command());
|
||||
m_command = next_session_command()->get_command();
|
||||
bool expect_response = mxs_mysql_command_will_respond(m_command);
|
||||
bool rval = mxs::Backend::execute_session_command();
|
||||
|
||||
if (rval && expect_response)
|
||||
|
||||
Reference in New Issue
Block a user