Use 64-bit integers for statistics in rwsplit

Wraparound is not likely anymore.
This commit is contained in:
Johan Wikman
2017-03-30 12:44:27 +03:00
parent a1d1413b24
commit 726610b67d
4 changed files with 17 additions and 16 deletions

View File

@ -335,11 +335,11 @@ struct router_client_session
*/
typedef struct
{
int n_sessions; /*< Number sessions created */
int n_queries; /*< Number of queries forwarded */
int n_master; /*< Number of stmts sent to master */
int n_slave; /*< Number of stmts sent to slave */
int n_all; /*< Number of stmts sent to all */
uint64_t n_sessions; /*< Number sessions created */
uint64_t n_queries; /*< Number of queries forwarded */
uint64_t n_master; /*< Number of stmts sent to master */
uint64_t n_slave; /*< Number of stmts sent to slave */
uint64_t n_all; /*< Number of stmts sent to all */
} ROUTER_STATS;
/**