summaryrefslogtreecommitdiff
path: root/sql/lock.cc
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-09-01 10:38:16 +0300
committermonty@hundin.mysql.fi <>2001-09-01 10:38:16 +0300
commit7f4aee1c907d3e8d26de50df698b5677bbdd759d (patch)
treec8989889543a2c502ec6a75d58738675ffac837c /sql/lock.cc
parente251f9d827a54d69007bae3200da8e7ff6e9019e (diff)
downloadmariadb-git-7f4aee1c907d3e8d26de50df698b5677bbdd759d.tar.gz
Make killing of threads safer
Diffstat (limited to 'sql/lock.cc')
-rw-r--r--sql/lock.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/lock.cc b/sql/lock.cc
index 1d9aca66e74..a8b26c3b17d 100644
--- a/sql/lock.cc
+++ b/sql/lock.cc
@@ -65,11 +65,9 @@ MYSQL_LOCK *mysql_lock_tables(THD *thd,TABLE **tables,uint count)
}
pthread_mutex_lock(&LOCK_open);
- pthread_mutex_lock(&thd->mysys_var->mutex);
thd->mysys_var->current_mutex= &LOCK_open;
thd->mysys_var->current_cond= &COND_refresh;
thd->proc_info="Waiting for table";
- pthread_mutex_unlock(&thd->mysys_var->mutex);
while (global_read_lock && ! thd->killed &&
thd->version == refresh_version)