diff options
author | unknown <mronstrom@mysql.com> | 2005-07-19 00:29:19 +0200 |
---|---|---|
committer | unknown <mronstrom@mysql.com> | 2005-07-19 00:29:19 +0200 |
commit | 6d29b23b15cdb14e0f60804db4eaeb5718cec78a (patch) | |
tree | 8cac93afd968960ab2b0e70bf1d21eaefadecd79 /include/thr_lock.h | |
parent | 5c27ff06c739c405c3ef09357c4f7deeae40b4b1 (diff) | |
download | mariadb-git-6d29b23b15cdb14e0f60804db4eaeb5718cec78a.tar.gz |
Bug #10600
remove_table_from_cache fails to signal other thread and gets
blocked when other thread also gets blocked
include/thr_lock.h:
Report if any threads was signalled
mysys/thr_lock.c:
Report if any threads was signalled
sql/lock.cc:
Report if any threads was signalled
Use new interface for remove_table_from_cache
sql/mysql_priv.h:
New interface for remove_table_from_cache
+ mysql_lock_abort_for_thread
sql/sql_base.cc:
Use new interface of remove_table_cache
Rewrote remove_table_from_cache to fix bug
sql/sql_table.cc:
Use new interface of remove_table_from_cache
Diffstat (limited to 'include/thr_lock.h')
-rw-r--r-- | include/thr_lock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/thr_lock.h b/include/thr_lock.h index f1bda0ce6b4..8caaa112605 100644 --- a/include/thr_lock.h +++ b/include/thr_lock.h @@ -107,7 +107,7 @@ void thr_unlock(THR_LOCK_DATA *data); int thr_multi_lock(THR_LOCK_DATA **data,uint count); void thr_multi_unlock(THR_LOCK_DATA **data,uint count); void thr_abort_locks(THR_LOCK *lock); -void thr_abort_locks_for_thread(THR_LOCK *lock, pthread_t thread); +bool thr_abort_locks_for_thread(THR_LOCK *lock, pthread_t thread); void thr_print_locks(void); /* For debugging */ my_bool thr_upgrade_write_delay_lock(THR_LOCK_DATA *data); my_bool thr_reschedule_write_lock(THR_LOCK_DATA *data); |