MXS-2067: Move server lock into Server class
The lock for the server is now only visible to the MaxScale core. Changing the type to std::mutex also allows the use of RAII lock guards.
This commit is contained in:
@ -134,12 +134,11 @@ typedef struct server
|
||||
SERVER_PARAM* parameters; /**< Additional custom parameters which may affect routing
|
||||
* decisions. */
|
||||
// Base variables
|
||||
SPINLOCK lock; /**< Access lock. Required when modifying server status or settings. */
|
||||
bool is_active; /**< Server is active and has not been "destroyed" */
|
||||
void* auth_instance;/**< Authenticator instance data */
|
||||
SSL_LISTENER* server_ssl; /**< SSL data */
|
||||
DCB** persistent; /**< List of unused persistent connections to the server */
|
||||
uint8_t charset; /**< Server character set. Read from backend and sent to client. */
|
||||
bool is_active; /**< Server is active and has not been "destroyed" */
|
||||
void* auth_instance; /**< Authenticator instance data */
|
||||
SSL_LISTENER* server_ssl; /**< SSL data */
|
||||
DCB** persistent; /**< List of unused persistent connections to the server */
|
||||
uint8_t charset; /**< Server character set. Read from backend and sent to client. */
|
||||
// Statistics and events
|
||||
SERVER_STATS stats; /**< The server statistics, e.g. number of connections */
|
||||
int persistmax; /**< Maximum pool size actually achieved since startup */
|
||||
|
Reference in New Issue
Block a user