Fix Auth Error server status
The mon_ping_or_connect_to_db resets the MYSQL handle which caused the loss of the error message. Returning a new enumeration value for authentication errors solves this problem.
This commit is contained in:
@ -179,7 +179,8 @@ typedef enum
|
||||
MONITOR_CONN_NEWCONN_OK, /* No existing connection or no ping reply. New connection created
|
||||
* successfully. */
|
||||
MONITOR_CONN_REFUSED, /* No existing connection or no ping reply. Server refused new connection. */
|
||||
MONITOR_CONN_TIMEOUT /* No existing connection or no ping reply. Timeout on new connection. */
|
||||
MONITOR_CONN_TIMEOUT, /* No existing connection or no ping reply. Timeout on new connection. */
|
||||
MONITOR_CONN_ACCESS_DENIED /* Server refused new connection due to authentication failure */
|
||||
} mxs_connect_result_t;
|
||||
|
||||
/** Monitor events */
|
||||
|
Reference in New Issue
Block a user