diff options
author | unknown <monty@hundin.mysql.fi> | 2002-06-17 12:34:19 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2002-06-17 12:34:19 +0300 |
commit | a1583056718c443e6c7feb0dead456b6567c045c (patch) | |
tree | 7fb8a56e8b7982117d32b33392e0f6e1bc56a477 /myisam/mi_dynrec.c | |
parent | 19e7bb150fffc487337d9b96cde681e6beb7e9c4 (diff) | |
download | mariadb-git-a1583056718c443e6c7feb0dead456b6567c045c.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.c | 2 |
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)) |