Make writeqlen and others uint64_t

This prevents them from overflowing with buffered results larger than can
be expressed with 32 bits.
This commit is contained in:
Markus Mäkelä
2018-10-19 14:49:56 +03:00
parent f461ab428e
commit a8eda7342f

View File

@ -192,9 +192,9 @@ typedef struct dcb
MXS_PROTOCOL func; /**< The protocol functions for this descriptor */
MXS_AUTHENTICATOR authfunc; /**< The authenticator functions for this descriptor
* */
uint32_t writeqlen; /**< Current number of byes in the write queue */
uint32_t high_water; /**< High water mark of write queue */
uint32_t low_water; /**< Low water mark of write queue */
uint64_t writeqlen; /**< Current number of byes in the write queue */
uint64_t high_water; /**< High water mark of write queue */
uint64_t low_water; /**< Low water mark of write queue */
GWBUF* writeq; /**< Write Data Queue */
GWBUF* delayq; /**< Delay Backend Write Data Queue */
GWBUF* readq; /**< Read queue for storing incomplete reads */