summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-06-02 08:30:33 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2021-06-02 08:30:33 +0300
commit49ab50f8828b90c975dba1973a7a4873217f49a7 (patch)
tree16a6eec66f134bdfef6c6fea7bdb27792979c1f5
parent6d21b6acb852ad86678452fe0f78122c75382b03 (diff)
parentd3d2c9656777ac59ce60e4070c0659e50c8796e2 (diff)
downloadmariadb-git-49ab50f8828b90c975dba1973a7a4873217f49a7.tar.gz
Merge 10.4 into 10.5
-rw-r--r--mysql-test/main/lock_kill.test4
-rw-r--r--sql/sql_admin.cc1
2 files changed, 3 insertions, 2 deletions
diff --git a/mysql-test/main/lock_kill.test b/mysql-test/main/lock_kill.test
index d0b83fe1413..dfeebbc4f6a 100644
--- a/mysql-test/main/lock_kill.test
+++ b/mysql-test/main/lock_kill.test
@@ -17,7 +17,7 @@ LOCK TABLE t1 WRITE;
eval KILL $conid;
--enable_query_log
--connection con1
---error 0,2013
+--error 0,2013,ER_CONNECTION_KILLED
reap;
--connection default
--disconnect con1
@@ -35,7 +35,7 @@ LOCK TABLE t1 WRITE, t2 WRITE;
eval KILL $conid;
--enable_query_log
--connection con1
---error 0,2013
+--error 0,2013,ER_CONNECTION_KILLED
reap;
--connection default
--disconnect con1
diff --git a/sql/sql_admin.cc b/sql/sql_admin.cc
index 227116a82b2..ec0bc7b0111 100644
--- a/sql/sql_admin.cc
+++ b/sql/sql_admin.cc
@@ -581,6 +581,7 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
if (thd->check_killed())
{
+ open_error= false;
fatal_error= true;
result_code= HA_ADMIN_FAILED;
goto send_result;