Use 64bits for server status flags

Monitor journal still uses 32bits.
This commit is contained in:
Esa Korhonen
2018-05-23 13:52:50 +03:00
parent 3ec449339f
commit f8940d4a2a
3 changed files with 22 additions and 26 deletions

View File

@ -227,8 +227,8 @@ typedef struct monitored_server
MYSQL *con; /**< The MySQL connection */
bool log_version_err;
int mon_err_count;
unsigned int mon_prev_status;
unsigned int pending_status; /**< Pending Status flag bitmap */
uint64_t mon_prev_status; /**< Status before starting the current monitor loop */
uint64_t pending_status; /**< Status during current monitor loop */
bool new_event; /**< Whether an action was taken on the last event */
struct monitored_server *next; /**< The next server in the list */
} MXS_MONITORED_SERVER;
@ -317,8 +317,8 @@ extern const char CN_EVENTS[];
bool check_monitor_permissions(MXS_MONITOR* monitor, const char* query);
void monitor_clear_pending_status(MXS_MONITORED_SERVER *ptr, int bit);
void monitor_set_pending_status(MXS_MONITORED_SERVER *ptr, int bit);
void monitor_clear_pending_status(MXS_MONITORED_SERVER *ptr, uint64_t bit);
void monitor_set_pending_status(MXS_MONITORED_SERVER *ptr, uint64_t bit);
void servers_status_pending_to_current(MXS_MONITOR *monitor);
void servers_status_current_to_pending(MXS_MONITOR *monitor);