MXS-2313: Use 64-bit integers to store rank

Although the default value is the maximum value of a signed 32-bit
integer, the value is stored as a 64-bit integer. The integer type
conversion functions return 64-bit values so storing it as one makes
sense.

Currently values higher than the default are allowed but the accepted
range of input should be restricted in the future.
This commit is contained in:
Markus Mäkelä
2019-03-10 11:17:58 +02:00
parent aeca0f8a31
commit 9b6b5270f1
7 changed files with 22 additions and 21 deletions

View File

@ -282,7 +282,7 @@ public:
*
* @return The server rank
*/
virtual int rank() const = 0;
virtual int64_t rank() const = 0;
/*
* Update server address. TODO: Move this to internal class once blr is gone.