From a8eda7342f512c35dee6f41c9dd1de82efb6a5f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 19 Oct 2018 14:49:56 +0300 Subject: [PATCH] Make writeqlen and others uint64_t This prevents them from overflowing with buffered results larger than can be expressed with 32 bits. --- include/maxscale/dcb.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/maxscale/dcb.h b/include/maxscale/dcb.h index c72437bad..e3d2353b0 100644 --- a/include/maxscale/dcb.h +++ b/include/maxscale/dcb.h @@ -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 */