summaryrefslogtreecommitdiff
path: root/myisam/mi_dynrec.c
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2002-06-17 12:34:19 +0300
committerunknown <monty@hundin.mysql.fi>2002-06-17 12:34:19 +0300
commitc99fd2caef34cab1677f44cb5c2337d7f6a5c8db (patch)
tree7fb8a56e8b7982117d32b33392e0f6e1bc56a477 /myisam/mi_dynrec.c
parentc47044f0aeede93e17a73cdc221ca6e38cd3f125 (diff)
downloadmariadb-git-c99fd2caef34cab1677f44cb5c2337d7f6a5c8db.tar.gz
Ensure that share->tot_locks s updated correctly
This fixes that mysamchk --sort-records works on windows. myisam/mi_check.c: Ensure that share->tot_locks s updated correctly myisam/mi_close.c: Ensure that share->tot_locks s updated correctly myisam/mi_dynrec.c: Ensure that share->tot_locks s updated correctly myisam/mi_open.c: Ensure that share->tot_locks s updated correctly myisam/mi_statrec.c: Ensure that share->tot_locks s updated correctly myisam/myisamchk.c: Ensure that share->tot_locks s updated correctly
Diffstat (limited to 'myisam/mi_dynrec.c')
-rw-r--r--myisam/mi_dynrec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/myisam/mi_dynrec.c b/myisam/mi_dynrec.c
index b5f5ca7fd33..12262cf07d6 100644
--- a/myisam/mi_dynrec.c
+++ b/myisam/mi_dynrec.c
@@ -1275,7 +1275,7 @@ int _mi_read_rnd_dynamic_record(MI_INFO *info, byte *buf,
if (info->lock_type == F_UNLCK)
{
#ifndef UNSAFE_LOCKING
- if (share->r_locks == 0 && share->w_locks == 0)
+ if (share->tot_locks == 0)
{
if (my_lock(share->kfile,F_RDLCK,0L,F_TO_EOF,
MYF(MY_SEEK_NOT_DONE) | info->lock_wait))