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 | c99fd2caef34cab1677f44cb5c2337d7f6a5c8db (patch) | |
tree | 7fb8a56e8b7982117d32b33392e0f6e1bc56a477 /myisam/mi_statrec.c | |
parent | c47044f0aeede93e17a73cdc221ca6e38cd3f125 (diff) | |
download | mariadb-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_statrec.c')
-rw-r--r-- | myisam/mi_statrec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/myisam/mi_statrec.c b/myisam/mi_statrec.c index ad00b6d2595..9afebce2ae6 100644 --- a/myisam/mi_statrec.c +++ b/myisam/mi_statrec.c @@ -239,7 +239,7 @@ int _mi_read_rnd_static_record(MI_INFO *info, byte *buf, { /* We don't nead new info */ #ifndef UNSAFE_LOCKING if ((! cache_read || share->base.reclength > cache_length) && - share->r_locks == 0 && share->w_locks == 0) + share->tot_locks == 0) { /* record not in cache */ if (my_lock(share->kfile,F_RDLCK,0L,F_TO_EOF, MYF(MY_SEEK_NOT_DONE) | info->lock_wait)) |