MXS-1765: Cork query queue until server handshake is read

The internal client must not drain the query queue if the server handshake
has not yet been read.
This commit is contained in:
Markus Mäkelä 2018-04-06 17:36:07 +03:00
parent 1e3ab1fc7c
commit b2ec8c95de
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -139,7 +139,7 @@ void LocalClient::process(uint32_t events)
error();
}
if (m_queue.size() && m_state != VC_ERROR)
if (m_queue.size() && m_state != VC_ERROR && m_state != VC_WAITING_HANDSHAKE)
{
drain_queue();
}