Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
6a2d88c1
Commit
6a2d88c1
authored
Mar 16, 2022
by
Daniel Black
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.2 to 10.3
parents
0e63023c
57dbe878
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
34 deletions
+42
-34
mysql-test/suite/galera/r/galera_kill_applier.result
mysql-test/suite/galera/r/galera_kill_applier.result
+4
-0
mysql-test/suite/galera/t/galera_kill_applier.test
mysql-test/suite/galera/t/galera_kill_applier.test
+4
-2
sql/share/errmsg-utf8.txt
sql/share/errmsg-utf8.txt
+24
-24
sql/sql_parse.cc
sql/sql_parse.cc
+10
-8
No files found.
mysql-test/suite/galera/r/galera_kill_applier.result
View file @
6a2d88c1
connection node_2;
connection node_2;
SET GLOBAL wsrep_slave_threads=2;
SET GLOBAL wsrep_slave_threads=2;
KILL ID;
Got one of the listed errors
Got one of the listed errors
KILL QUERY ID;
Got one of the listed errors
Got one of the listed errors
KILL ID;
Got one of the listed errors
Got one of the listed errors
KILL QUERY ID;
Got one of the listed errors
Got one of the listed errors
SET GLOBAL wsrep_slave_threads=1;
SET GLOBAL wsrep_slave_threads=1;
connection node_1;
connection node_1;
...
...
mysql-test/suite/galera/t/galera_kill_applier.test
View file @
6a2d88c1
...
@@ -15,21 +15,23 @@ SET GLOBAL wsrep_slave_threads=2;
...
@@ -15,21 +15,23 @@ SET GLOBAL wsrep_slave_threads=2;
--
let
$applier_thread
=
`SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE = 'wsrep applier idle' LIMIT 1`
--
let
$applier_thread
=
`SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE = 'wsrep applier idle' LIMIT 1`
--
disable_query_log
--
replace_result
$applier_thread
ID
--
error
ER_KILL_DENIED_ERROR
,
ER_KILL_DENIED_ERROR
--
error
ER_KILL_DENIED_ERROR
,
ER_KILL_DENIED_ERROR
--
eval
KILL
$applier_thread
--
eval
KILL
$applier_thread
--
replace_result
$applier_thread
ID
--
error
ER_KILL_DENIED_ERROR
,
ER_KILL_DENIED_ERROR
--
error
ER_KILL_DENIED_ERROR
,
ER_KILL_DENIED_ERROR
--
eval
KILL
QUERY
$applier_thread
--
eval
KILL
QUERY
$applier_thread
--
let
$aborter_thread
=
`SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE = 'wsrep aborter idle' LIMIT 1`
--
let
$aborter_thread
=
`SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE = 'wsrep aborter idle' LIMIT 1`
--
replace_result
$aborter_thread
ID
--
error
ER_KILL_DENIED_ERROR
,
ER_KILL_DENIED_ERROR
--
error
ER_KILL_DENIED_ERROR
,
ER_KILL_DENIED_ERROR
--
eval
KILL
$aborter_thread
--
eval
KILL
$aborter_thread
--
replace_result
$aborter_thread
ID
--
error
ER_KILL_DENIED_ERROR
,
ER_KILL_DENIED_ERROR
--
error
ER_KILL_DENIED_ERROR
,
ER_KILL_DENIED_ERROR
--
eval
KILL
QUERY
$aborter_thread
--
eval
KILL
QUERY
$aborter_thread
--
enable_query_log
SET
GLOBAL
wsrep_slave_threads
=
1
;
SET
GLOBAL
wsrep_slave_threads
=
1
;
...
...
sql/share/errmsg-utf8.txt
View file @
6a2d88c1
...
@@ -2231,30 +2231,30 @@ ER_NO_SUCH_THREAD
...
@@ -2231,30 +2231,30 @@ ER_NO_SUCH_THREAD
swe "Finns ingen tråd med id %lu"
swe "Finns ingen tråd med id %lu"
ukr "Невідомий ідентифікатор гілки: %lu"
ukr "Невідомий ідентифікатор гілки: %lu"
ER_KILL_DENIED_ERROR
ER_KILL_DENIED_ERROR
cze "Nejste vlastníkem threadu %l
u
"
cze "Nejste vlastníkem threadu %l
ld
"
dan "Du er ikke ejer af tråden %l
u
"
dan "Du er ikke ejer af tråden %l
ld
"
nla "U bent geen bezitter van thread %l
u
"
nla "U bent geen bezitter van thread %l
ld
"
eng "You are not owner of thread %l
u
"
eng "You are not owner of thread %l
ld
"
est "Ei ole lõime %l
u
omanik"
est "Ei ole lõime %l
ld
omanik"
fre "Vous n'êtes pas propriétaire de la tâche no: %l
u
"
fre "Vous n'êtes pas propriétaire de la tâche no: %l
ld
"
ger "Sie sind nicht Eigentümer von Thread %l
u
"
ger "Sie sind nicht Eigentümer von Thread %l
ld
"
greek "Δεν είσθε owner του thread %l
u
"
greek "Δεν είσθε owner του thread %l
ld
"
hindi "आप थ्रेड %l
u
के OWNER नहीं हैं"
hindi "आप थ्रेड %l
ld
के OWNER नहीं हैं"
hun "A %l
u
thread-nek mas a tulajdonosa"
hun "A %l
ld
thread-nek mas a tulajdonosa"
ita "Utente non proprietario del thread %l
u
"
ita "Utente non proprietario del thread %l
ld
"
jpn "スレッド %l
u
のオーナーではありません。"
jpn "スレッド %l
ld
のオーナーではありません。"
kor "쓰레드(Thread) %l
u
의 소유자가 아닙니다."
kor "쓰레드(Thread) %l
ld
의 소유자가 아닙니다."
nor "Du er ikke eier av tråden %l
u
"
nor "Du er ikke eier av tråden %l
ld
"
norwegian-ny "Du er ikkje eigar av tråd %l
u
"
norwegian-ny "Du er ikkje eigar av tråd %l
ld
"
pol "Nie jeste? wła?cicielem w?tku %l
u
"
pol "Nie jeste? wła?cicielem w?tku %l
ld
"
por "Você não é proprietário da 'thread' %l
u
"
por "Você não é proprietário da 'thread' %l
ld
"
rum "Nu sinteti proprietarul threadului %l
u
"
rum "Nu sinteti proprietarul threadului %l
ld
"
rus "Вы не являетесь владельцем потока %l
u
"
rus "Вы не являетесь владельцем потока %l
ld
"
serbian "Vi niste vlasnik thread-a %l
u
"
serbian "Vi niste vlasnik thread-a %l
ld
"
slo "Nie ste vlastníkom vlákna %l
u
"
slo "Nie ste vlastníkom vlákna %l
ld
"
spa "Tu no eres el propietario del thread%l
u
"
spa "Tu no eres el propietario del thread%l
ld
"
swe "Du är inte ägare till tråd %l
u
"
swe "Du är inte ägare till tråd %l
ld
"
ukr "Ви не володар гілки %l
u
"
ukr "Ви не володар гілки %l
ld
"
ER_NO_TABLES_USED
ER_NO_TABLES_USED
cze "Nejsou použity žádné tabulky"
cze "Nejsou použity žádné tabulky"
dan "Ingen tabeller i brug"
dan "Ingen tabeller i brug"
...
...
sql/sql_parse.cc
View file @
6a2d88c1
...
@@ -9205,15 +9205,17 @@ void sql_kill_user(THD *thd, LEX_USER *user, killed_state state)
...
@@ -9205,15 +9205,17 @@ void sql_kill_user(THD *thd, LEX_USER *user, killed_state state)
WSREP_TO_ISOLATION_BEGIN
(
WSREP_MYSQL_DB
,
NULL
,
NULL
)
WSREP_TO_ISOLATION_BEGIN
(
WSREP_MYSQL_DB
,
NULL
,
NULL
)
}
}
#endif
/* WITH_WSREP */
#endif
/* WITH_WSREP */
if
(
likely
(
!
(
error
=
kill_threads_for_user
(
thd
,
user
,
state
,
&
rows
))))
switch
(
error
=
kill_threads_for_user
(
thd
,
user
,
state
,
&
rows
))
my_ok
(
thd
,
rows
);
else
{
{
/*
case
0
:
This is probably ER_OUT_OF_RESOURCES, but in the future we may
my_ok
(
thd
,
rows
);
want to write the name of the user we tried to kill
break
;
*/
case
ER_KILL_DENIED_ERROR
:
my_error
(
error
,
MYF
(
0
),
user
->
host
.
str
,
user
->
user
.
str
);
my_error
(
error
,
MYF
(
0
),
(
long
long
)
thd
->
thread_id
);
break
;
case
ER_OUT_OF_RESOURCES
:
default:
my_error
(
error
,
MYF
(
0
));
}
}
#ifdef WITH_WSREP
#ifdef WITH_WSREP
return
;
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment