diff options
Diffstat (limited to 'myisam')
-rw-r--r-- | myisam/mi_rprev.c | 2 |
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, |