MXS-2273 Set SERVER_BEING_DRAINED properly

The maintenance and being-drained modes are now set using the same
mechanism.
This commit is contained in:
Johan Wikman
2019-01-28 15:22:02 +02:00
parent e3d74bd18d
commit bc4a52acb0
2 changed files with 58 additions and 30 deletions

View File

@ -134,9 +134,11 @@ public:
/**
* Maintenance mode request constants.
*/
static const int SERVER_NO_CHANGE = 0;
static const int SERVER_MAINT_OFF = 1;
static const int SERVER_MAINT_ON = 2;
static const int SERVER_NO_CHANGE = 0;
static const int SERVER_MAINT_OFF = 1;
static const int SERVER_MAINT_ON = 2;
static const int SERVER_BEING_DRAINED_OFF = 3;
static const int SERVER_BEING_DRAINED_ON = 4;
SERVER* server = nullptr; /**< The server being monitored */
MYSQL* con = nullptr; /**< The MySQL connection */