MXS-2295: Keep the COM_CHANGE_USER command

If the whole session command history is cleared, the COM_CHANGE_USER is
lost and the connections can end up using different users.
This commit is contained in:
Markus Mäkelä
2019-01-30 08:04:08 +02:00
parent f39f27cd7b
commit bf4aa1ab2c
2 changed files with 19 additions and 5 deletions

View File

@ -139,7 +139,7 @@ public:
int m_last_keepalive_check; /**< When the last ping was done */
int m_nbackends; /**< Number of backend servers (obsolete) */
DCB* m_client; /**< The client DCB */
uint64_t m_sescmd_count; /**< Number of executed session commands */
uint64_t m_sescmd_count; /**< Number of executed session commands (starts from 1) */
int m_expected_responses; /**< Number of expected responses to the current
* query */
GWBUF* m_query_queue; /**< Queued commands waiting to be executed */