MXS-1775 Add status indicating disk space exhaustion
The variable is modified by monitors from their monitor threads. And made available to routers as nice to know information.
This commit is contained in:
@ -192,7 +192,8 @@ enum
|
||||
#define SERVER_JOINED (1 << 9) /**<< The server is joined in a Galera cluster */
|
||||
#define SERVER_NDB (1 << 10) /**<< The server is part of a MySQL cluster setup */
|
||||
#define SERVER_MASTER_STICKINESS (1 << 11) /**<< Server Master stickiness */
|
||||
|
||||
// Bits providing general information
|
||||
#define SERVER_DISK_SPACE_EXHAUSTED (1 << 31) /**<< The disk space of the server is exhausted */
|
||||
|
||||
/**
|
||||
* Is the server valid and active
|
||||
@ -254,6 +255,8 @@ enum
|
||||
(SERVER_RUNNING|SERVER_SLAVE_OF_EXT_MASTER)) == \
|
||||
(SERVER_RUNNING|SERVER_SLAVE_OF_EXT_MASTER))
|
||||
|
||||
#define SERVER_IS_DISK_SPACE_EXHAUSTED(s) ((s)->status & SERVER_DISK_SPACE_EXHAUSTED)
|
||||
|
||||
/**
|
||||
* @brief Allocate a new server
|
||||
*
|
||||
|
Reference in New Issue
Block a user