mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-23328 Server hang due to Galera lock conflict resolution
* Fix error handling NULL-pointer reference * Add mtr-suppression on galera_ssl_upgrade
This commit is contained in:
@ -9463,7 +9463,9 @@ void sql_kill(THD *thd, longlong id, killed_state state, killed_type type)
|
||||
#ifdef WITH_WSREP
|
||||
return;
|
||||
wsrep_error_label:
|
||||
my_error(ER_CANNOT_USER, MYF(0), wsrep_thd_query(thd));
|
||||
error= (type == KILL_TYPE_QUERY ? ER_KILL_QUERY_DENIED_ERROR :
|
||||
ER_KILL_DENIED_ERROR);
|
||||
my_error(error, MYF(0), id);
|
||||
#endif /* WITH_WSREP */
|
||||
}
|
||||
|
||||
@ -9498,7 +9500,7 @@ sql_kill_user(THD *thd, LEX_USER *user, killed_state state)
|
||||
#ifdef WITH_WSREP
|
||||
return;
|
||||
wsrep_error_label:
|
||||
my_error(ER_CANNOT_USER, MYF(0), user->user.str);
|
||||
my_error(ER_CANNOT_USER, MYF(0), user ? user->user.str : "NULL");
|
||||
#endif /* WITH_WSREP */
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user