mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
References: MDEV-3924 lp:1088267 - merged fix from lp:codership-mysql
This commit is contained in:
@ -7205,8 +7205,14 @@ uint kill_one_thread(THD *thd, ulong id, killed_state kill_signal)
|
|||||||
faster and do a harder kill than KILL_SYSTEM_THREAD;
|
faster and do a harder kill than KILL_SYSTEM_THREAD;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef WITH_WSREP
|
||||||
|
if (((thd->security_ctx->master_access & SUPER_ACL) ||
|
||||||
|
thd->security_ctx->user_matches(tmp->security_ctx)) &&
|
||||||
|
!wsrep_thd_is_brute_force((void *)tmp))
|
||||||
|
#else
|
||||||
if ((thd->security_ctx->master_access & SUPER_ACL) ||
|
if ((thd->security_ctx->master_access & SUPER_ACL) ||
|
||||||
thd->security_ctx->user_matches(tmp->security_ctx))
|
thd->security_ctx->user_matches(tmp->security_ctx))
|
||||||
|
#endif /* WITH_WSREP */
|
||||||
{
|
{
|
||||||
tmp->awake(kill_signal);
|
tmp->awake(kill_signal);
|
||||||
error=0;
|
error=0;
|
||||||
|
Reference in New Issue
Block a user