MXS-3609: Use 64-bit integers for statistics

This should be enough to avoid the problem of integer overflow in 2.4.
This commit is contained in:
Markus Mäkelä
2021-08-17 11:44:22 +03:00
parent aa6a1a58eb
commit b4edc74926
9 changed files with 33 additions and 33 deletions

View File

@ -317,7 +317,7 @@ void RWSplit::diagnostics(DCB* dcb)
"\tNumber of router sessions: %" PRIu64 "\n",
stats().n_sessions);
dcb_printf(dcb,
"\tCurrent no. of router sessions: %d\n",
"\tCurrent no. of router sessions: %lu\n",
service()->stats.n_current);
dcb_printf(dcb,
"\tNumber of queries forwarded: %" PRIu64 "\n",