diff options
author | Sergei Golubchik <serg@mysql.com> | 2008-08-06 21:30:05 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mysql.com> | 2008-08-06 21:30:05 +0200 |
commit | 3971e262e99366fa4bc9b454e69cf48daac9be85 (patch) | |
tree | b56353bb1faa6894eddf63228e16dcb2b0621f39 /include/waiting_threads.h | |
parent | 7ca3fc4ff0ab53835da9f57af7f630f4c65868b7 (diff) | |
download | mariadb-git-3971e262e99366fa4bc9b454e69cf48daac9be85.tar.gz |
maria: deadlock detection when waiting on unique key (useless until we can rollback)
include/my_pthread.h:
cleanup
include/waiting_threads.h:
header guard
mysys/waiting_threads.c:
bug - kill strategy were not applied to deadlocks of length 1.
cast timeout to ulonglong.
storage/maria/ma_static.c:
declare WT_RESOURCE_TYPE ma_rc_dup_unique
storage/maria/ma_write.c:
deadlock detection when waiting on unique key (useless until we can rollback)
storage/maria/maria_def.h:
deadlock detection when waiting on unique key (useless until we can rollback)
storage/maria/trnman.c:
use deadlock detector.
protect state transitions of a TRN with a mutex.
trnman_trid_to_trn() function.
storage/maria/trnman.h:
trnman_trid_to_trn() function
protect state transitions of a TRN with a mutex
use deadlock detector.
storage/maria/trnman_public.h:
trnman_trid_to_trn()
Diffstat (limited to 'include/waiting_threads.h')
-rw-r--r-- | include/waiting_threads.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/waiting_threads.h b/include/waiting_threads.h index 92fbbf998be..6355a83b13d 100644 --- a/include/waiting_threads.h +++ b/include/waiting_threads.h @@ -13,6 +13,9 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#ifndef _waiting_threads_h +#define _waiting_threads_h + #include <my_global.h> #include <my_sys.h> #include <lf.h> @@ -152,3 +155,4 @@ void wt_thd_release(WT_THD *, WT_RESOURCE_ID *); #define wt_thd_release_all(THD) wt_thd_release((THD), 0) int wt_resource_id_memcmp(void *, void *); +#endif |