diff options
author | Julius Goryavsky <julius.goryavsky@mariadb.com> | 2020-07-27 13:34:37 +0200 |
---|---|---|
committer | Julius Goryavsky <julius.goryavsky@mariadb.com> | 2020-07-27 13:34:37 +0200 |
commit | 4fae3c56b6a9d26e53570fc2468291d92a3c2a5b (patch) | |
tree | 4057805a880d550fea7a0e6f758b93e0de1855b9 /sql/sql_insert.cc | |
parent | 6898eae7f8ef3f0b773687c0308520f072da0bc9 (diff) | |
download | mariadb-git-10.2-sysprg-MDEV-21910.tar.gz |
MDEV-21910: merge reworked 10.4-MDEV-21910 patch into 10.210.2-sysprg-MDEV-21910
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r-- | sql/sql_insert.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index ec784bc6df4..faf40e1b928 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -2753,7 +2753,7 @@ void kill_delayed_threads(void) Delayed_insert *di; while ((di= it++)) { - mysql_mutex_lock(&di->thd.LOCK_thd_data); + mysql_mutex_lock(&di->thd.LOCK_thd_kill); if (di->thd.killed < KILL_CONNECTION) di->thd.set_killed(KILL_CONNECTION); if (di->thd.mysys_var) @@ -2773,7 +2773,7 @@ void kill_delayed_threads(void) } mysql_mutex_unlock(&di->thd.mysys_var->mutex); } - mysql_mutex_unlock(&di->thd.LOCK_thd_data); + mysql_mutex_unlock(&di->thd.LOCK_thd_kill); } mysql_mutex_unlock(&LOCK_delayed_insert); // For unlink from list DBUG_VOID_RETURN; |