summaryrefslogtreecommitdiff
path: root/myisam/mi_locking.c
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2003-07-19 18:17:29 +0500
committerunknown <hf@deer.(none)>2003-07-19 18:17:29 +0500
commit5f44dc8760fe747d67670122a1eb335130c03411 (patch)
tree3f085dfe9c1a2e4205df93973faab0e2876a5155 /myisam/mi_locking.c
parentd010cf2b8f542f79624a63f503874bfd5af8de7c (diff)
downloadmariadb-git-5f44dc8760fe747d67670122a1eb335130c03411.tar.gz
Fix for #712 with Serg's suggestions
myisam/mi_locking.c: Here we use F_EXTRA_LCK myisam/myisamchk.c: lines of "locking - emulation" replaced with mi_lock_database call myisam/myisamdef.h: no need for MI_TEMPORARY_TABLE sql/ha_myisam.cc: We use F_WRLCK instead MI_TEMPORARY_TABLE
Diffstat (limited to 'myisam/mi_locking.c')
-rw-r--r--myisam/mi_locking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/myisam/mi_locking.c b/myisam/mi_locking.c
index 648c447ae30..22772a3dd2e 100644
--- a/myisam/mi_locking.c
+++ b/myisam/mi_locking.c
@@ -39,7 +39,7 @@ 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)
+ if (lock_type == F_EXTRA_LCK)
{
++share->w_locks;
++share->tot_locks;