Use correct callback function in MySQLAuth

The JSON diagnostics function used the non-JSON version of the callback.
This commit is contained in:
Markus Mäkelä 2018-03-19 15:27:55 +02:00
parent dcf9d7f152
commit 39dff20a0a
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -674,7 +674,7 @@ json_t* mysql_auth_diagnostic_json(const SERV_LISTENER *port)
sqlite3* handle = get_handle(instance);
if (sqlite3_exec(handle, "SELECT user, host FROM " MYSQLAUTH_USERS_TABLE_NAME,
diag_cb, rval, &err) != SQLITE_OK)
diag_cb_json, rval, &err) != SQLITE_OK)
{
MXS_ERROR("Failed to print users: %s", err);
sqlite3_free(err);