summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2001-02-18 13:56:10 +0200
committermonty@donna.mysql.com <>2001-02-18 13:56:10 +0200
commitbfc0d5ca29e496cd98e0a04c55caa91a19c1e518 (patch)
tree47cf20488aa11083734792277f16161f7dad6aff /myisam
parent0ccc30f40ca74d22a5eec2c7fb87411d335d7d77 (diff)
downloadmariadb-git-bfc0d5ca29e496cd98e0a04c55caa91a19c1e518.tar.gz
Fixed problem with concurrent inserts and read-previous
Fix for BSDI 4.0
Diffstat (limited to 'myisam')
-rw-r--r--myisam/mi_rprev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/myisam/mi_rprev.c b/myisam/mi_rprev.c
index 69d18b10287..fff2d2257b6 100644
--- a/myisam/mi_rprev.c
+++ b/myisam/mi_rprev.c
@@ -54,7 +54,7 @@ int mi_rprev(MI_INFO *info, byte *buf, int inx)
if (!error)
{
- while (info->lastpos > info->state->data_file_length)
+ while (info->lastpos >= info->state->data_file_length)
{
/* Skip rows that are inserted by other threads since we got a lock */
if ((error=_mi_search_next(info,share->keyinfo+inx,info->lastkey,