summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <svoj@mysql.com/april.(none)>2006-11-07 17:01:34 +0400
committerunknown <svoj@mysql.com/april.(none)>2006-11-07 17:01:34 +0400
commita44762bcbd2cd3d7828d45878655c24a1b0f4c5f (patch)
tree033104e37fa873425ac5a719ca39980ab837defd /sql
parent447c336df10c6e105712674de21500ceab112134 (diff)
parent88f55bf8c24a103b9eb8879e071e2e137c71ee22 (diff)
downloadmariadb-git-a44762bcbd2cd3d7828d45878655c24a1b0f4c5f.tar.gz
Merge mysql.com:/home/svoj/devel/bk/mysql-4.1-engines
into mysql.com:/home/svoj/devel/mysql/BUG23312/mysql-4.1-engines
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_insert.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc
index 283fe571d53..2887d97bd8f 100644
--- a/sql/sql_insert.cc
+++ b/sql/sql_insert.cc
@@ -1181,8 +1181,6 @@ void kill_delayed_threads(void)
delayed_insert *tmp;
while ((tmp=it++))
{
- /* Ensure that the thread doesn't kill itself while we are looking at it */
- pthread_mutex_lock(&tmp->mutex);
tmp->thd.killed=1;
if (tmp->thd.mysys_var)
{
@@ -1201,7 +1199,6 @@ void kill_delayed_threads(void)
}
pthread_mutex_unlock(&tmp->thd.mysys_var->mutex);
}
- pthread_mutex_unlock(&tmp->mutex);
}
VOID(pthread_mutex_unlock(&LOCK_delayed_insert)); // For unlink from list
}