summaryrefslogtreecommitdiff
path: root/myisam/mi_locking.c
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2003-07-19 13:51:15 +0500
committerunknown <hf@deer.(none)>2003-07-19 13:51:15 +0500
commit0fd6f4049de2f4ba2a4f4197a7ef596ec0598eb6 (patch)
treed65486ebb8885f46d6e3dea736cfb2fffb4b80f7 /myisam/mi_locking.c
parent906dc7df753ea5107957c7470f43405f92a71ed0 (diff)
parent02808985ddbd3102a51fe7a008d9f31a3ed169e2 (diff)
downloadmariadb-git-0fd6f4049de2f4ba2a4f4197a7ef596ec0598eb6.tar.gz
Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.0
into deer.(none):/home/hf/work/mysql-4.0
Diffstat (limited to 'myisam/mi_locking.c')
-rw-r--r--myisam/mi_locking.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/myisam/mi_locking.c b/myisam/mi_locking.c
index cbde05d31f5..648c447ae30 100644
--- a/myisam/mi_locking.c
+++ b/myisam/mi_locking.c
@@ -39,6 +39,14 @@ int mi_lock_database(MI_INFO *info, int lock_type)
if (share->options & HA_OPTION_READ_ONLY_DATA ||
info->lock_type == lock_type)
DBUG_RETURN(0);
+ if (lock_type == MI_TEMPORARY_TABLE)
+ {
+ ++share->w_locks;
+ ++share->tot_locks;
+ info->lock_type= lock_type;
+ DBUG_RETURN(0);
+ }
+
flag=error=0;
pthread_mutex_lock(&share->intern_lock);
if (share->kfile >= 0) /* May only be false on windows */