MXS-1146: Fix command tracking for large packets

The current command was updated with invalid data when the packet size
exceeded 2^24 bytes.
This commit is contained in:
Markus Mäkelä
2017-03-02 11:11:17 +02:00
parent f7cc548093
commit 0de9561b5a
3 changed files with 8 additions and 3 deletions

View File

@ -59,7 +59,7 @@
#define GW_MYSQL_SERVER_CAPABILITIES_BYTE1 0xff
#define GW_MYSQL_SERVER_CAPABILITIES_BYTE2 0xf7
#define GW_MYSQL_SERVER_LANGUAGE 0x08
#define GW_MYSQL_MAX_PACKET_LEN 0xffffffL;
#define GW_MYSQL_MAX_PACKET_LEN 0xffffffL
#define GW_MYSQL_SCRAMBLE_SIZE 20
// debug for mysql_* functions