diff options
author | monty@hundin.mysql.fi <> | 2001-09-01 10:38:16 +0300 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2001-09-01 10:38:16 +0300 |
commit | 7f4aee1c907d3e8d26de50df698b5677bbdd759d (patch) | |
tree | c8989889543a2c502ec6a75d58738675ffac837c /sql/lock.cc | |
parent | e251f9d827a54d69007bae3200da8e7ff6e9019e (diff) | |
download | mariadb-git-7f4aee1c907d3e8d26de50df698b5677bbdd759d.tar.gz |
Make killing of threads safer
Diffstat (limited to 'sql/lock.cc')
-rw-r--r-- | sql/lock.cc | 2 |
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) |