diff options
author | monty@donna.mysql.com <> | 2000-09-12 03:02:33 +0300 |
---|---|---|
committer | monty@donna.mysql.com <> | 2000-09-12 03:02:33 +0300 |
commit | 2776500c220c92bb78df03513cc3dd33588f40e5 (patch) | |
tree | 051686baf31e5363765879f2437ada3abea6b71b /myisam/mi_locking.c | |
parent | 497007e2bd9cb127d54a4fdb02253301f404ce7f (diff) | |
download | mariadb-git-2776500c220c92bb78df03513cc3dd33588f40e5.tar.gz |
Update to new root alloc, OPTIMIZE TABLE and some other changes
Diffstat (limited to 'myisam/mi_locking.c')
-rw-r--r-- | myisam/mi_locking.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/myisam/mi_locking.c b/myisam/mi_locking.c index c6fc8736145..f34497fc0b6 100644 --- a/myisam/mi_locking.c +++ b/myisam/mi_locking.c @@ -25,9 +25,6 @@ #ifdef __WIN__ #include <errno.h> #endif -#if !defined(HAVE_PREAD) && defined(THREAD) -pthread_mutex_t THR_LOCK_keycache; -#endif /* lock table by F_UNLCK, F_RDLCK or F_WRLCK */ @@ -73,14 +70,8 @@ int mi_lock_database(MI_INFO *info, int lock_type) { share->state.process= share->last_process=share->this_process; share->state.unique= info->last_unique= info->this_unique; -#ifndef HAVE_PREAD - pthread_mutex_lock(&THR_LOCK_keycache); /* QQ; Has to be removed! */ -#endif if (mi_state_info_write(share->kfile, &share->state, 1)) error=my_errno; -#ifndef HAVE_PREAD - pthread_mutex_unlock(&THR_LOCK_keycache);/* QQ; Has to be removed! */ -#endif share->changed=0; if (myisam_flush) { |