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:
Markus Mäkelä
2020-02-28 15:36:43 +02:00
parent 96ba2da40c
commit 67fee60f80
3 changed files with 18 additions and 16 deletions

View File

@ -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 */